diff --git a/LdapServer.py b/LdapServer.py index 0732aec..cd984f8 100644 --- a/LdapServer.py +++ b/LdapServer.py @@ -48,6 +48,8 @@ class LdapServer(object): if self.dn: con.simple_bind_s(self.dn,self.pwd) + elif self.uri.startswith('ldapi://'): + con.sasl_interactive_bind_s("", ldap.sasl.external()) self.con = con return True