svn commit: samba r4871 - in branches/SAMBA_3_0/source/rpc_server: .

jerry at samba.org jerry at samba.org
Thu Jan 20 17:05:10 GMT 2005


Author: jerry
Date: 2005-01-20 17:05:10 +0000 (Thu, 20 Jan 2005)
New Revision: 4871

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

Log:
BUG 603: patch by Daniel Beschorner <db at unit-netz.de>.  Correct access mask check for _samr_lookup_domain() to work with Windows RAS server
Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c	2005-01-20 17:04:16 UTC (rev 4870)
+++ branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c	2005-01-20 17:05:10 UTC (rev 4871)
@@ -2541,8 +2541,11 @@
 	if (!find_policy_by_hnd(p, &q_u->connect_pol, (void**)&info))
 		return NT_STATUS_INVALID_HANDLE;
 
+	/* win9x user manager likes to use SA_RIGHT_SAM_ENUM_DOMAINS here.  
+	   Reverted that change so we will work with RAS servers again */
+
 	if (!NT_STATUS_IS_OK(r_u->status = access_check_samr_function(info->acc_granted, 
-		SA_RIGHT_SAM_ENUM_DOMAINS, "_samr_lookup_domain"))) 
+		SA_RIGHT_SAM_OPEN_DOMAIN, "_samr_lookup_domain"))) 
 	{
 		return r_u->status;
 	}



More information about the samba-cvs mailing list