From 6830447f96f7652854d9a661099b1200f56889a9 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 24 Mar 2021 12:34:29 +0100 Subject: [PATCH] Add support for ldapi URI (using Unix socket) --- LdapServer.py | 2 ++ 1 file changed, 2 insertions(+) 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