浏览代码

Mini-Fehler :/

Global Cube 2 年之前
父节点
当前提交
e553e27f23
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      gctools/apache_ldap.py

+ 3 - 2
gctools/apache_ldap.py

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