1
0
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:
Gerald Carter 2006-09-06 15:17:25 +00:00 committed by Gerald (Jerry) Carter
parent 0ef504a0a6
commit 7d5356fd5d

View File

@ -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;