File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,19 +117,19 @@ def connect(self, version: ssl._SSLMethod = None) -> None:
117
117
ldap_pass = "%s:%s" % (self .target .lmhash , self .target .nthash )
118
118
else :
119
119
ldap_pass = self .target .password
120
- channel_binding = None
120
+ channel_binding = {}
121
121
if self .target .ldap_channel_binding :
122
122
if not hasattr (ldap3 , 'TLS_CHANNEL_BINDING' ):
123
123
raise Exception ("To use LDAP channel binding, install the patched ldap3 module: pip3 install git+https://github.com/ly4k/ldap3" )
124
- channel_binding = ldap3 .TLS_CHANNEL_BINDING if self .target .ldap_channel_binding else None
124
+ channel_binding [ "channel_binding" ] = ldap3 .TLS_CHANNEL_BINDING if self .target .ldap_channel_binding else None
125
125
ldap_conn = ldap3 .Connection (
126
126
ldap_server ,
127
127
user = user ,
128
128
password = ldap_pass ,
129
129
authentication = ldap3 .NTLM ,
130
130
auto_referrals = False ,
131
131
receive_timeout = self .target .timeout * 10 ,
132
- channel_binding = channel_binding ,
132
+ ** channel_binding
133
133
)
134
134
135
135
if not ldap_conn .bound :
Original file line number Diff line number Diff line change 5
5
6
6
setup (
7
7
name = "certipy-ad" ,
8
- version = "4.8.1 " ,
8
+ version = "4.8.2 " ,
9
9
license = "MIT" ,
10
10
author = "ly4k" ,
11
11
url = "https://github.com/ly4k/Certipy" ,
You can’t perform that action at this time.
0 commit comments