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>
/* 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,
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;
}