From d52e5473ef3c167e2d5707616313f049b406d725 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 21 Dec 2011 15:28:26 +1100 Subject: 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 --- source3/rpc_server/dcesrv_auth_generic.c | 4 ++-- 1 file 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; } -- cgit