Skip to content

Commit 8aabd79

Browse files
Merge pull request #440 from satti-hari-krishna-reddy/master
update the authentication type to NTLM
2 parents adfead0 + 151577e commit 8aabd79

File tree

1 file changed

+2
-2
lines changed
  • active-directory/1.0.0/src

1 file changed

+2
-2
lines changed

active-directory/1.0.0/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Connection,
77
MODIFY_REPLACE,
88
ALL_ATTRIBUTES,
9+
NTLM
910
)
1011

1112
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)
3132
login_dn = domain + "\\" + login_user
3233

3334
s = Server(server, port=int(port), use_ssl=use_SSL)
34-
c = Connection(s, user=login_dn, password=password, auto_bind=True)
35-
35+
c = Connection(s, user=login_dn, password=password, authentication=NTLM, auto_bind=True)
3636
return c
3737

3838
# Decode UserAccountControl code

0 commit comments

Comments
 (0)