mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3-rpc_server: Return the status code from gensec.
We need to know the difference between NT_STATUS_OK and NT_STATUS_MORE_PROCESSING_REQUIRED. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
2c5ed102b7
commit
bfdd22b316
@ -59,7 +59,7 @@ static NTSTATUS auth_generic_server_authtype_start_as_root(TALLOC_CTX *mem_ctx,
|
||||
|
||||
/* steal gensec context to the caller */
|
||||
*ctx = talloc_move(mem_ctx, &gensec_security);
|
||||
return NT_STATUS_OK;
|
||||
return status;
|
||||
}
|
||||
|
||||
NTSTATUS auth_generic_server_authtype_start(TALLOC_CTX *mem_ctx,
|
||||
|
@ -435,9 +435,11 @@ static bool pipe_auth_generic_bind(struct pipes_struct *p,
|
||||
response,
|
||||
p->remote_address,
|
||||
&gensec_security);
|
||||
if (!NT_STATUS_EQUAL(status, NT_STATUS_OK)) {
|
||||
DEBUG(0, (__location__ ": auth_generic_server_authtype_start failed: %s\n",
|
||||
nt_errstr(status)));
|
||||
if (!NT_STATUS_IS_OK(status) &&
|
||||
!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED))
|
||||
{
|
||||
DEBUG(0, (__location__ ": auth_generic_server_authtype_start[%u/%u] failed: %s\n",
|
||||
auth_info->auth_type, auth_info->auth_level, nt_errstr(status)));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user