diff options
author | Tomas Krizek <tkrizek@redhat.com> | 2016-11-08 12:16:09 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-11-10 17:40:49 +0100 |
commit | a68c95d11612108375877ff45bdb53ce6fc8fbe4 (patch) | |
tree | 6d1405a49a8cc4264186063ffaa088e3494ed0e8 /ipapython/ipaldap.py | |
parent | 808b1436b4158cb6f926ac2b5bd0979df6ea7e9f (diff) | |
download | freeipa-a68c95d11612108375877ff45bdb53ce6fc8fbe4.tar.gz freeipa-a68c95d11612108375877ff45bdb53ce6fc8fbe4.tar.xz freeipa-a68c95d11612108375877ff45bdb53ce6fc8fbe4.zip |
ipaldap: remove do_bind from LDAPClient
Remove do_bind() method that was a relict used in IPAdmin. Replace
its uses with simple / external binds.
https://fedorahosted.org/freeipa/ticket/6461
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipapython/ipaldap.py')
-rw-r--r-- | ipapython/ipaldap.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index 2994c0144..ed5c804dc 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -749,26 +749,6 @@ class LDAPClient(object): def __str__(self): return self.ldap_uri - def do_bind(self, dm_password="", autobind=AUTOBIND_AUTO): - if dm_password: - self.simple_bind(bind_dn=DIRMAN_DN, - bind_password=dm_password) - return - if (autobind != AUTOBIND_DISABLED and os.getegid() == 0 and - self._protocol == 'ldapi'): - try: - # autobind - self.external_bind() - return - except errors.NotFound: - if autobind == AUTOBIND_ENABLED: - # autobind was required and failed, raise - # exception that it failed - raise - - # fall back - self.gssapi_bind() - def modify_s(self, dn, modlist): # FIXME: for backwards compatibility only assert isinstance(dn, DN) |