svn commit: samba r18930 - in branches/SAMBA_3_0_23/source/lib: .

jra at samba.org jra at samba.org
Tue Sep 26 20:26:48 GMT 2006


Author: jra
Date: 2006-09-26 20:26:47 +0000 (Tue, 26 Sep 2006)
New Revision: 18930

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

Log:
only grant privs to Administrators if privileges are enabled to avoid
bopgus error messages (original Jerry checkin).

Modified:
   branches/SAMBA_3_0_23/source/lib/account_pol.c


Changeset:
Modified: branches/SAMBA_3_0_23/source/lib/account_pol.c
===================================================================
--- branches/SAMBA_3_0_23/source/lib/account_pol.c	2006-09-26 19:37:37 UTC (rev 18929)
+++ branches/SAMBA_3_0_23/source/lib/account_pol.c	2006-09-26 20:26:47 UTC (rev 18930)
@@ -295,8 +295,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