Fix issue #667 with use-kcache option
parent
83180a6b68
commit
b2bcbe0ade
|
@ -47,7 +47,7 @@ class connection(object):
|
|||
self.logger = None
|
||||
self.password = ''
|
||||
self.username = ''
|
||||
self.kerberos = True if self.args.kerberos else False
|
||||
self.kerberos = True if self.args.kerberos or self.args.use_kcache else False
|
||||
self.aesKey = None if not self.args.aesKey else self.args.aesKey
|
||||
self.kdcHost = None if not self.args.kdcHost else self.args.kdcHost
|
||||
self.export = None if not self.args.export else self.args.export
|
||||
|
|
|
@ -233,7 +233,7 @@ class smb(connection):
|
|||
transport = DCERPCTransportFactory(stringBinding)
|
||||
transport.set_connect_timeout(5)
|
||||
dce = transport.get_dce_rpc()
|
||||
if self.args.kerberos:
|
||||
if self.kerberos:
|
||||
dce.set_auth_type(RPC_C_AUTHN_GSS_NEGOTIATE)
|
||||
dce.connect()
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue