Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion impacket/ldap/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ def kerberosLogin(self, user, password, domain='', lmhash='', nthash='', aesKey=

# If TLS is used, setup channel binding

if self._SSL and self.__channel_binding_value is not None:
if self._SSL:
if self.__channel_binding_value is None:
self.__channel_binding_value = self.generateChannelBindingValue()
chkField['Bnd'] = self.__channel_binding_value
if self.__signing:
chkField['Flags'] |= GSS_C_CONF_FLAG
Expand Down