|
@@ -1,5 +1,5 @@
|
|
|
from ldap3 import Server, Connection, ALL, ALL_ATTRIBUTES, ALL_OPERATIONAL_ATTRIBUTES
|
|
|
-from ldap3.core.exceptions import LDAPCursorError
|
|
|
+# from ldap3.core.exceptions import LDAPCursorError
|
|
|
|
|
|
|
|
|
def connect_ldap3():
|
|
@@ -30,6 +30,7 @@ if __name__ == '__main__':
|
|
|
|
|
|
# from ldap3 import Server, Connection, AUTH_SIMPLE, STRATEGY_SYNC, ALL
|
|
|
# s = Server(HOST, port=389, get_info=ALL)
|
|
|
-# c = Connection(s, authentication=AUTH_SIMPLE, user=user_dn, password=PASSWORD, check_names=True, lazy=False, client_strategy=STRATEGY_SYNC, raise_exceptions=True)
|
|
|
+# c = Connection(s, authentication=AUTH_SIMPLE, user=user_dn, password=PASSWORD, check_names=True,
|
|
|
+# lazy=False, client_strategy=STRATEGY_SYNC, raise_exceptions=True)
|
|
|
# c.open()
|
|
|
# c.bind()
|