diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/token_util.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index e5b9e1b531..d6cd2ea3a8 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -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; } /******************************************************************* @@ -313,9 +308,7 @@ 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")); + if (!NT_STATUS_IS_OK(status)) { 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; } |