mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r18182: only grant privs to Administrators if privileges are enabled to avoid bopgus error messages
This commit is contained in:
parent
0ef504a0a6
commit
7d5356fd5d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user