Skip to content

Commit

Permalink
Fix NTLM auth bug when pwd is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
CravateRouge authored Feb 10, 2023
1 parent 040e09f commit 8772789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap3/core/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def bind(self,
log(ERROR, '%s for <%s>', self.last_error, self)
raise LDAPSASLMechanismNotSupportedError(self.last_error)
elif self.authentication == NTLM:
if self.user and self.password and len(self.user.split('\\')) == 2:
if self.user and self.password is not None and len(self.user.split('\\')) == 2:
if log_enabled(PROTOCOL):
log(PROTOCOL, 'performing NTLM BIND for <%s>', self)
if not self.strategy.pooled:
Expand Down

0 comments on commit 8772789

Please sign in to comment.