svn commit: samba r18182 - in branches/SAMBA_3_0/source/lib: .

jerry at samba.org jerry at samba.org
Wed Sep 6 15:17:26 GMT 2006


Author: jerry
Date: 2006-09-06 15:17:25 +0000 (Wed, 06 Sep 2006)
New Revision: 18182

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

Log:
only grant privs to Administrators if privileges are enabled to avoid bopgus error messages
Modified:
   branches/SAMBA_3_0/source/lib/account_pol.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/account_pol.c
===================================================================
--- branches/SAMBA_3_0/source/lib/account_pol.c	2006-09-06 15:01:25 UTC (rev 18181)
+++ branches/SAMBA_3_0/source/lib/account_pol.c	2006-09-06 15:17:25 UTC (rev 18182)
@@ -303,8 +303,11 @@
 
 	/* BUILTIN\Administrators get everything -- *always* */
 
-	if ( !grant_all_privileges( &global_sid_Builtin_Administrators ) ) {
-		DEBUG(0,("init_account_policy: Failed to grant privileges to BUILTIN\\Administrators!\n"));
+	if ( lp_enable_privileges() ) {
+		if ( !grant_all_privileges( &global_sid_Builtin_Administrators ) ) {
+			DEBUG(1,("init_account_policy: Failed to grant privileges "
+				"to BUILTIN\\Administrators!\n"));
+		}
 	}
 
 	return True;



More information about the samba-cvs mailing list