#3446 [abrt] freeipa-client-3.1.2-1.fc18: ipautil.py:838:get_ipa_basedn:KeyError: 'namingcontexts'
Closed: Fixed None Opened 11 years ago by mkosek.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 910245

Version-Release number of selected component:
freeipa-client-3.1.2-1.fc18

Additional info:
cmdline:        /usr/bin/python -E /usr/sbin/ipa-client-install --noac
--principal=Adminstrator -W
dso_list:       freeipa-python-3.1.2-1.fc18.x86_64
executable:     /usr/sbin/ipa-client-install
kernel:         3.7.4-204.fc18.x86_64
uid:            0

Truncated backtrace:
ipautil.py:838:get_ipa_basedn:KeyError: 'namingcontexts'

Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 2360, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 2346, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 1708, in install
    ret = ds.search(domain=options.domain, server=options.server,
hostname=hostname, ca_cert_path=get_cert_path(options.ca_cert_file))
  File "/usr/lib/python2.7/site-packages/ipaclient/ipadiscovery.py", line 231,
in search
    ldapret = self.ipacheckldap(self.server, self.realm,
ca_cert_path=ca_cert_path)
  File "/usr/lib/python2.7/site-packages/ipaclient/ipadiscovery.py", line 299,
in ipacheckldap
    basedn = get_ipa_basedn(lh)
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 838, in
get_ipa_basedn
    contexts = entries[0][1]['namingcontexts']
KeyError: 'namingcontexts'

Local variables in innermost frame:
conn: <ldap.ldapobject.SimpleLDAPObject instance at 0x19bccf8>
entries: [('', {'namingContexts': ['DC=henscheid,DC=com',
'CN=Configuration,DC=henscheid,DC=com',
'CN=Schema,CN=Configuration,DC=henscheid,DC=com',
'DC=DomainDnsZones,DC=henscheid,DC=com',
'DC=ForestDnsZones,DC=henscheid,DC=com'], 'defaultNamingContext':
['DC=henscheid,DC=com']})]

I can take this, ideally after the LDAP patches that are on the list now are pushed.

master:

63407ed Don't download the schema in ipadiscovery[[BR]]
cf4b521 Remove unneeded python-ldap imports[[BR]]
664248d Use IPAdmin rather than raw python-ldap in migration.py and ipadiscovery.py[[BR]]
a024233 Use IPAdmin rather than raw python-ldap in ipa-client-install[[BR]]
91a63cc Remove ipaserver/ipaldap.py[[BR]]
4e6a2a9 Move ipaldap to ipapython[[BR]]

Hotfix for ipa-3-1 branch:

49577a4

Metadata Update from @mkosek:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 3.2 - 2013/03

7 years ago

Login to comment on this ticket.

Metadata