mirror of
https://github.com/samba-team/samba.git
synced 2025-07-22 16:59:09 +03:00
s3:client: Turn off smb signing for message op
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
62a4705dbc
commit
6f552204d4
@ -399,7 +399,7 @@ def check_refresh_gpo_list(dc_hostname, lp, creds, gpos):
|
||||
# Force signing for the connection
|
||||
saved_signing_state = creds.get_smb_signing()
|
||||
creds.set_smb_signing(SMB_SIGNING_REQUIRED)
|
||||
conn = libsmb.Conn(dc_hostname, 'sysvol', lp=s3_lp, creds=creds, sign=True)
|
||||
conn = libsmb.Conn(dc_hostname, 'sysvol', lp=s3_lp, creds=creds)
|
||||
# Reset signing state
|
||||
creds.set_smb_signing(saved_signing_state)
|
||||
cache_path = lp.cache_path('gpo_cache')
|
||||
|
@ -120,7 +120,7 @@ def smb_sysvol_conn(server, lp, creds):
|
||||
# Force signing for the connection
|
||||
saved_signing_state = creds.get_smb_signing()
|
||||
creds.set_smb_signing(SMB_SIGNING_REQUIRED)
|
||||
conn = libsmb.Conn(server, "sysvol", lp=s3_lp, creds=creds, sign=True)
|
||||
conn = libsmb.Conn(server, "sysvol", lp=s3_lp, creds=creds)
|
||||
# Reset signing state
|
||||
creds.set_smb_signing(saved_signing_state)
|
||||
return conn
|
||||
|
@ -392,7 +392,7 @@ def smb_connection(dc_hostname, service, lp, creds):
|
||||
# the SMB bindings rely on having a s3 loadparm
|
||||
s3_lp = s3param.get_context()
|
||||
s3_lp.load(lp.configfile)
|
||||
conn = libsmb.Conn(dc_hostname, service, lp=s3_lp, creds=creds, sign=True)
|
||||
conn = libsmb.Conn(dc_hostname, service, lp=s3_lp, creds=creds)
|
||||
except Exception:
|
||||
raise CommandError("Error connecting to '%s' using SMB" % dc_hostname)
|
||||
# Reset signing state
|
||||
|
@ -45,7 +45,7 @@ class smb_pipe_socket(object):
|
||||
saved_signing_state = creds.get_smb_ipc_signing()
|
||||
creds.set_smb_ipc_signing(SMB_SIGNING_REQUIRED)
|
||||
self.smbconn = libsmb.Conn(target_hostname, 'IPC$', lp3,
|
||||
creds=creds, ipc=True, sign=True)
|
||||
creds=creds, ipc=True)
|
||||
creds.set_smb_ipc_signing(saved_signing_state)
|
||||
self.smbfid = self.smbconn.create(pipename,
|
||||
DesiredAccess=0x12019f,
|
||||
|
Reference in New Issue
Block a user