Add support for ldapi URI (using Unix socket)

This commit is contained in:
Benjamin Renard 2021-03-24 12:34:29 +01:00
parent bb5ef528b0
commit 6830447f96

View file

@ -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