mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s4-smb_server do not set credentials on gensec twice
The samba_server_gensec_start() has already set the credentials on the gensec_security context. Andrew Bartlett
This commit is contained in:
parent
5c5fc5dde4
commit
75689effdf
@ -383,10 +383,6 @@ static void reply_nt1(struct smbsrv_request *req, uint16_t choice)
|
||||
}
|
||||
req->smb_conn->negotiate.server_credentials = talloc_reparent(req, req->smb_conn, server_credentials);
|
||||
|
||||
gensec_set_target_service(gensec_security, "cifs");
|
||||
|
||||
gensec_set_credentials(gensec_security, server_credentials);
|
||||
|
||||
oid = GENSEC_OID_SPNEGO;
|
||||
nt_status = gensec_start_mech_by_oid(gensec_security, oid);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user