diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-30 06:46:48 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:46 +0100 |
commit | 334a0cdcdc16ac50de2be1f751262bd87d0e5e86 (patch) | |
tree | 80882ce2180354b9c2f4520791381ac9d226f027 /ipaserver/ipaldap.py | |
parent | f7a4cceb97f829ad2e1f8853c0e4414dcebf731e (diff) | |
download | freeipa.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/ipaldap.py')
-rw-r--r-- | ipaserver/ipaldap.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py index e8a16406..b200d19a 100644 --- a/ipaserver/ipaldap.py +++ b/ipaserver/ipaldap.py @@ -570,10 +570,6 @@ class IPASimpleLDAPObject(object): def start_tls_s(self): return self.conn.start_tls_s() - def unbind(self): - self.flush_cached_schema() - return self.conn.unbind() - def unbind_s(self): self.flush_cached_schema() return self.conn.unbind_s() @@ -1704,10 +1700,6 @@ class IPAdmin(LDAPClient): # FIXME: for backwards compatibility only return self.conn.modify_s(*args, **kwargs) - def unbind_s(self, *args, **kwargs): - # FIXME: for backwards compatibility only - return self.conn.unbind_s(*args, **kwargs) - def set_option(self, *args, **kwargs): # FIXME: for backwards compatibility only return self.conn.set_option(*args, **kwargs) @@ -1717,8 +1709,7 @@ class IPAdmin(LDAPClient): return self.conn.encode(*args, **kwargs) def unbind(self, *args, **kwargs): - # FIXME: for backwards compatibility only - return self.conn.unbind(*args, **kwargs) + return self.conn.unbind_s(*args, **kwargs) # FIXME: Some installer tools depend on ipaldap importing plugins.ldap2. |