summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-06 15:17:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:43:30 -0500
commit1a6ffd139176f7b19ed0a7acfb13354adae03062 (patch)
tree730aafce71808aafe621d00a312810d95744f742
parentb5f6cbbe1be4379a1ebab1f70ef05af838d48fb7 (diff)
downloadsamba-1a6ffd139176f7b19ed0a7acfb13354adae03062.tar.gz
samba-1a6ffd139176f7b19ed0a7acfb13354adae03062.tar.bz2
samba-1a6ffd139176f7b19ed0a7acfb13354adae03062.zip
r18182: only grant privs to Administrators if privileges are enabled to avoid bopgus error messages
(This used to be commit 7d5356fd5db6ece2504c9c140d1f454056be7164)
-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;