Fix NotFound exception in ipa-nis-manage.

The signature of ldap2.get_entry() changed so normalize wasn't being
handled properly so the basedn was always being appended causing our
entry in cn=config to be not found.

ticket 414
This commit is contained in:
Rob Crittenden
2010-11-04 15:23:25 -04:00
parent a3c4c7e891
commit fcf3cbbe8b
2 changed files with 5 additions and 3 deletions

View File

@@ -702,7 +702,7 @@ class ldap2(CrudBackend, Encoder):
def _generate_modlist(self, dn, entry_attrs, normalize):
# get original entry
(dn, entry_attrs_old) = self.get_entry(dn, entry_attrs.keys(), normalize)
(dn, entry_attrs_old) = self.get_entry(dn, entry_attrs.keys(), normalize=normalize)
# get_entry returns a decoded entry, encode it back
# we could call search_s directly, but this saves a lot of code at
# the expense of a little bit of performace