svn commit: samba r4636 - in branches/SAMBA_4_0/source/librpc/rpc: .

abartlet at samba.org abartlet at samba.org
Mon Jan 10 11:09:31 GMT 2005


Author: abartlet
Date: 2005-01-10 11:09:31 +0000 (Mon, 10 Jan 2005)
New Revision: 4636

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4636

Log:
Per tridge's wish (and probably correct behaviour), don't key off a
specific GENSEC mech type, but on the behaviour of the mech.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c	2005-01-10 10:48:19 UTC (rev 4635)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c	2005-01-10 11:09:31 UTC (rev 4636)
@@ -100,12 +100,14 @@
 
 		p->conn->security_state.auth_info->credentials = credentials;
 		
-		if (auth_type == DCERPC_AUTH_TYPE_SPNEGO) {
+		if (NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
+			/* We are demanding a reply, so use a request that will get us one */
 			status = dcerpc_alter_context(p, tmp_ctx, &p->syntax, &p->transfer_syntax);
 			if (!NT_STATUS_IS_OK(status)) {
 				break;
 			}
 		} else {
+			/* NO reply expected, so just send it */
 			status = dcerpc_auth3(p->conn, tmp_ctx);
 			credentials = data_blob(NULL, 0);
 			if (!NT_STATUS_IS_OK(status)) {



More information about the samba-cvs mailing list