1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Removed redundant logging from create_builtin_users and create_builtin_administrators

The Debug messages in create_builtin_users and create_builtin_users have now
been encapsulated in add_sid_to_builtin.
This commit is contained in:
Tim Prouty 2008-07-30 09:35:13 -07:00 committed by Jeremy Allison
parent e92faf5996
commit ca153139b1

View File

@ -252,7 +252,7 @@ static NTSTATUS add_sid_to_builtin(const DOM_SID *builtin_sid,
}
if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("add_sid_to_builtin %s could not be added to %s: "
DEBUG(4, ("add_sid_to_builtin %s could not be added to %s: "
"%s\n", sid_string_dbg(dom_sid),
sid_string_dbg(builtin_sid), nt_errstr(status)));
}
@ -279,14 +279,9 @@ NTSTATUS create_builtin_users(const DOM_SID *dom_sid)
{
status = add_sid_to_builtin(&global_sid_Builtin_Users,
&dom_users);
if ( !NT_STATUS_IS_OK(status) ) {
DEBUG(4,("create_builtin_administrators: Failed to add Domain Users to"
" Users\n"));
return status;
}
}
return NT_STATUS_OK;
return status;
}
/*******************************************************************
@ -314,8 +309,6 @@ NTSTATUS create_builtin_administrators(const DOM_SID *dom_sid)
status = add_sid_to_builtin(&global_sid_Builtin_Administrators,
&dom_admins);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(4,("create_builtin_administrators: Failed to add Domain Admins"
" Administrators\n"));
return status;
}
}
@ -332,14 +325,9 @@ NTSTATUS create_builtin_administrators(const DOM_SID *dom_sid)
if ( ret ) {
status = add_sid_to_builtin(&global_sid_Builtin_Administrators,
&root_sid);
if ( !NT_STATUS_IS_OK(status) ) {
DEBUG(4,("create_builtin_administrators: Failed to add root"
" Administrators\n"));
return status;
}
}
return NT_STATUS_OK;
return status;
}