mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3/utils: Make sure we can negotiate protocol based on smb.conf settings
net_rpc_check was hardcoded to check for rpc using SMB1 only. We should negotiate protocols based on the client max|min protocol settings this commit also removes the entry for samba3.blackbox.net.misc.lookup share list from knownfails as this test should now pass following this change. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
66443fe934
commit
5010535ec1
@ -375,4 +375,3 @@
|
||||
^samba.tests.ntlmdisabled.python\(ktest\).python2.ntlmdisabled.NtlmDisabledTests.test_samr_change_password\(ktest\)
|
||||
^samba.tests.ntlmdisabled.python\(ad_dc_no_ntlm\).python3.ntlmdisabled.NtlmDisabledTests.test_ntlm_connection\(ad_dc_no_ntlm\)
|
||||
^samba.tests.ntlmdisabled.python\(ad_dc_no_ntlm\).python2.ntlmdisabled.NtlmDisabledTests.test_ntlm_connection\(ad_dc_no_ntlm\)
|
||||
^samba3.blackbox.net.misc.lookup share list\(nt4_dc:local\) # when attempting to figure out if rpc is available test will fail because it tries to do this with smb1 which cannot be negotiated with this env
|
||||
|
@ -7472,8 +7472,9 @@ bool net_rpc_check(struct net_context *c, unsigned flags)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
status = smbXcli_negprot(cli->conn, cli->timeout, PROTOCOL_CORE,
|
||||
PROTOCOL_NT1);
|
||||
status = smbXcli_negprot(cli->conn, cli->timeout,
|
||||
lp_client_min_protocol(),
|
||||
lp_client_max_protocol());
|
||||
if (!NT_STATUS_IS_OK(status))
|
||||
goto done;
|
||||
if (smbXcli_conn_protocol(cli->conn) < PROTOCOL_NT1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user