[Freeipa-devel] Please use the new LDAPEntry API in new code
Jan Cholasta
jcholast at redhat.com
Thu Sep 26 10:40:58 UTC 2013
Hi,
I have seen in several recently submitted patches that some people still
use the old LDAP API. It is deprecated and is going to be removed soon,
so please don't use it anymore.
Whenever you have an urge to do something like this:
dn, entry_attrs = ldap.get_entry(...)
...
ldap.update_entry(dn, entry_attrs)
Do this instead:
entry = ldap.get_entry(...)
...
ldap.update_entry(entry)
Thanks!
Honza
--
Jan Cholasta
More information about the Freeipa-devel
mailing list