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

tridge at samba.org tridge at samba.org
Fri Oct 1 05:19:51 GMT 2004


Author: tridge
Date: 2004-10-01 05:19:51 +0000 (Fri, 01 Oct 2004)
New Revision: 2763

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/librpc/rpc&rev=2763&nolog=1

Log:
use no-auth bind on ncacn_np unless we specify at least one of "sign", "seal" or "connect" 

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	2004-10-01 03:28:39 UTC (rev 2762)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c	2004-10-01 05:19:51 UTC (rev 2763)
@@ -496,7 +496,8 @@
 	if (username && username[0] && (binding->flags & DCERPC_SCHANNEL_ANY)) {
 		status = dcerpc_bind_auth_schannel(*p, pipe_uuid, pipe_version, 
 						   domain, username, password);
-	} else if (username && username[0]) {
+	} else if (username && username[0] &&
+		   (binding->flags & (DCERPC_CONNECT|DCERPC_SIGN|DCERPC_SEAL))) {
 		status = dcerpc_bind_auth_ntlm(*p, pipe_uuid, pipe_version, domain, username, password);
 	} else {    
 		status = dcerpc_bind_auth_none(*p, pipe_uuid, pipe_version);



More information about the samba-cvs mailing list