summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-30 06:46:48 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:46 +0100
commit334a0cdcdc16ac50de2be1f751262bd87d0e5e86 (patch)
tree80882ce2180354b9c2f4520791381ac9d226f027 /ipaserver/plugins
parentf7a4cceb97f829ad2e1f8853c0e4414dcebf731e (diff)
downloadfreeipa.git-334a0cdcdc16ac50de2be1f751262bd87d0e5e86.tar.gz
freeipa.git-334a0cdcdc16ac50de2be1f751262bd87d0e5e86.tar.xz
freeipa.git-334a0cdcdc16ac50de2be1f751262bd87d0e5e86.zip
Remove IPAdmin.unbind_s(), keep unbind()
The unbind and unbind_s functions do the same thing (both are synchronous). In the low-level IPASimpleLDAPObject, unbind_s rather than unbind is kept. Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/ldap2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index 619e9a07..295eddd7 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -347,7 +347,7 @@ class ldap2(LDAPClient, CrudBackend):
conn = IPASimpleLDAPObject(
self.ldap_uri, force_schema_updates=False)
conn.simple_bind_s(dn, old_pass)
- conn.unbind()
+ conn.unbind_s()
with self.error_handler():
self.conn.passwd_s(dn, old_pass, new_pass)