diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-12-21 15:28:26 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-22 19:25:11 +0100 |
commit | d52e5473ef3c167e2d5707616313f049b406d725 (patch) | |
tree | 429f97b23bc92c8ef293b5b67d99d3eabdb4ca38 | |
parent | 83f0ca3aadf6f3fe949ea9408f9800eada554b6e (diff) | |
download | samba-d52e5473ef3c167e2d5707616313f049b406d725.tar.gz samba-d52e5473ef3c167e2d5707616313f049b406d725.tar.bz2 samba-d52e5473ef3c167e2d5707616313f049b406d725.zip |
s3-rpc_server: Allow gensec mechanisms to return NT_STATUS_OK
If a kerberos mechanism is added, then it can return OK after just one packet.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/rpc_server/dcesrv_auth_generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/dcesrv_auth_generic.c b/source3/rpc_server/dcesrv_auth_generic.c index 1756cddebd..16dfd4a976 100644 --- a/source3/rpc_server/dcesrv_auth_generic.c +++ b/source3/rpc_server/dcesrv_auth_generic.c @@ -65,8 +65,8 @@ NTSTATUS auth_generic_server_start(TALLOC_CTX *mem_ctx, } status = gensec_update(a->gensec_security, mem_ctx, NULL, *token_in, token_out); - if (!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) { - DEBUG(0, (__location__ ": auth_ntlmssp_update failed: %s\n", + if (!NT_STATUS_IS_OK(status) && !NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) { + DEBUG(2, (__location__ ": gensec_update failed: %s\n", nt_errstr(status))); goto done; } |