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

metze at samba.org metze at samba.org
Sat Apr 2 06:10:46 GMT 2005


Author: metze
Date: 2005-04-02 06:10:45 +0000 (Sat, 02 Apr 2005)
New Revision: 6178

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

Log:
fix ncacn_np connection without sign or seal against NT4

metze

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


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2005-04-02 01:43:54 UTC (rev 6177)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2005-04-02 06:10:45 UTC (rev 6178)
@@ -936,7 +936,10 @@
 		status = dcerpc_bind_auth_schannel(tmp_ctx, 
 						   p, pipe_uuid, pipe_version, 
 						   credentials);
-	} else if (!cli_credentials_is_anonymous(credentials)) {
+	} else if (!cli_credentials_is_anonymous(credentials) &&
+		!(binding->transport == NCACN_NP &&
+		  !(binding->flags & DCERPC_SIGN) &&
+		  !(binding->flags & DCERPC_SEAL))) {
 		uint8_t auth_type;
 		if (binding->flags & DCERPC_AUTH_SPNEGO) {
 			auth_type = DCERPC_AUTH_TYPE_SPNEGO;



More information about the samba-cvs mailing list