Add support for ldapi URI (using Unix socket)
This commit is contained in:
parent
bb5ef528b0
commit
6830447f96
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ class LdapServer(object):
|
||||||
|
|
||||||
if self.dn:
|
if self.dn:
|
||||||
con.simple_bind_s(self.dn,self.pwd)
|
con.simple_bind_s(self.dn,self.pwd)
|
||||||
|
elif self.uri.startswith('ldapi://'):
|
||||||
|
con.sasl_interactive_bind_s("", ldap.sasl.external())
|
||||||
|
|
||||||
self.con = con
|
self.con = con
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue