diff --git a/active-directory/1.0.0/src/app.py b/active-directory/1.0.0/src/app.py index d7091b93..8b5e1245 100644 --- a/active-directory/1.0.0/src/app.py +++ b/active-directory/1.0.0/src/app.py @@ -6,6 +6,7 @@ Connection, MODIFY_REPLACE, ALL_ATTRIBUTES, + NTLM ) from ldap3.extend.microsoft.addMembersToGroups import ad_add_members_to_groups as addUsersInGroups @@ -31,8 +32,7 @@ def __ldap_connection(self, server, port, domain, login_user, password, use_ssl) login_dn = domain + "\\" + login_user s = Server(server, port=int(port), use_ssl=use_SSL) - c = Connection(s, user=login_dn, password=password, auto_bind=True) - + c = Connection(s, user=login_dn, password=password, authentication=NTLM, auto_bind=True) return c # Decode UserAccountControl code