summaryrefslogtreecommitdiff
path: root/source3/lib/account_pol.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/account_pol.c')
-rw-r--r--source3/lib/account_pol.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c
index de5a37aea9..e6ef8dbbe4 100644
--- a/source3/lib/account_pol.c
+++ b/source3/lib/account_pol.c
@@ -303,8 +303,11 @@ BOOL init_account_policy(void)
/* 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;