1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3-rpc_server: Call pipe_auth_verify_final() if needed.

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andreas Schneider 2014-04-23 10:42:12 +02:00 committed by Stefan Metzmacher
parent bfdd22b316
commit 06922f92e4

View File

@ -48,6 +48,8 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
static NTSTATUS pipe_auth_verify_final(struct pipes_struct *p);
/**
* Dump everything from the start of the end up of the provided data
* into a file, but only at debug level >= 50
@ -460,6 +462,17 @@ static bool pipe_auth_generic_bind(struct pipes_struct *p,
GENSEC_FEATURE_SIGN_PKT_HEADER);
}
if (NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
return true;
}
status = pipe_auth_verify_final(p);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("pipe_auth_verify_final failed: %s\n",
nt_errstr(status)));
return false;
}
return true;
}