mirror of
https://github.com/samba-team/samba.git
synced 2025-02-07 01:58:28 +03:00
librpc/rpc: make use of creds->ex->client_sid in dcesrv_netr_check_schannel_get_state()
creds->sid will be removed soon. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> (cherry picked from commit 453587fbc1ef74a3b997235e84040553261fa13e)
This commit is contained in:
parent
58f657baf0
commit
114e369122
@ -70,7 +70,7 @@ static NTSTATUS dcesrv_netr_check_schannel_get_state(struct dcesrv_call_state *d
|
||||
DCESRV_NETR_CHECK_SCHANNEL_STATE_MAGIC,
|
||||
struct dcesrv_netr_check_schannel_state);
|
||||
if (s != NULL) {
|
||||
if (!dom_sid_equal(&s->account_sid, creds->sid)) {
|
||||
if (!dom_sid_equal(&s->account_sid, &creds->ex->client_sid)) {
|
||||
goto new_state;
|
||||
}
|
||||
if (s->auth_type != auth_type) {
|
||||
@ -92,7 +92,7 @@ new_state:
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
s->account_sid = *creds->sid;
|
||||
s->account_sid = creds->ex->client_sid;
|
||||
s->auth_type = auth_type;
|
||||
s->auth_level = auth_level;
|
||||
s->result = NT_STATUS_MORE_PROCESSING_REQUIRED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user