Bug 1284414 - ipa-otptoken-import fails on nonexistent ldap connection
ipa-otptoken-import fails on nonexistent ldap connection
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa (Show other bugs)
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: IPA Maintainers
Namita Soman
: Regression, ZStream
Depends On:
Blocks: 1284813
  Show dependency treegraph
Reported: 2015-11-23 04:58 EST by Jan Cholasta
Modified: 2016-11-04 01:41 EDT (History)
6 users (show)

See Also:
Fixed In Version: ipa-4.2.0-16.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1284813 (view as bug list)
Last Closed: 2016-11-04 01:41:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Cholasta 2015-11-23 04:58:41 EST
This bug is created as a clone of upstream ticket:

$ sudo ipa-otptoken-import ~/freeipa/ipatests/test_ipaserver/data/full.xml output
Error adding token: no context.ldap2_140252530250192 in thread 'MainThread'
The ipa-otptoken-import command was successful
Comment 1 Jan Cholasta 2015-11-23 04:59:31 EST
This is a regression in RHEL 7.2.
Comment 2 Martin Kosek 2015-11-23 05:02:31 EST
High severity - functionality is not working any more.
Comment 8 Varun Mylaraiah 2016-07-25 17:14:07 EDT

[root@master ~]# rpm -qa ipa-server

[root@master ~]# ipa otptoken-find --all
0 OTP tokens matched
Number of entries returned 0

[root@master ~]# cat pskc1.xml
<?xml version="1.0" encoding="UTF-8"?>
<KeyContainer Version="1.0"
        <Key Id="12345678"
                <ResponseFormat Length="8" Encoding="DECIMAL"/>

[root@master ~]# ipa-otptoken-import pskc1.xml output.xml
Added token: 12345678
The ipa-otptoken-import command was successful

[root@master ~]# ipa otptoken-find --all
1 OTP token matched
  dn: ipatokenuniqueid=12345678,cn=otp,dc=testrelm,dc=test
  Unique ID: 12345678
  Type: HOTP
  Owner: admin
  Manager: admin
  Vendor: Manufacturer
  Serial: 987654321
  Key: MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=
  Algorithm: sha1
  Digits: 8
  Counter: 0
  objectclass: ipatokenhotp, top, ipatoken
Number of entries returned 1

[root@master ~]# cat output.xml 
<KeyContainer xmlns="urn:ietf:params:xml:ns:keyprov:pskc" Version="1.0" Id="exampleID1">
Comment 10 errata-xmlrpc 2016-11-04 01:41:23 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.