diff options
author | Gerald W. Carter <jerry@samba.org> | 2008-04-30 09:43:00 -0500 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-05-07 13:39:01 +0200 |
commit | 27cb294644745635689049e07f7b99f9c34e2ebc (patch) | |
tree | 2ba7efeba961801e8e3c2d158e8cbc682443ca29 /source/auth | |
parent | 66a06bdd4d815e8b287e952ae5f25b1bfa2089f7 (diff) | |
download | samba-27cb294644745635689049e07f7b99f9c34e2ebc.tar.gz |
BUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}
Raise the debug msgs from Lvl 0 in the create_builtin_XX() functions
to prevent unnecessary panic from people reading the logs.
(cherry picked from commit 2983b9dc790e0f90ec1e6add131438c6bfd361b4)
(cherry picked from commit c28e21c63eca87a266078b65d65b436badc4e349)
Diffstat (limited to 'source/auth')
-rw-r--r-- | source/auth/token_util.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/source/auth/token_util.c b/source/auth/token_util.c index 6720a2cbd86..cd67c2a213d 100644 --- a/source/auth/token_util.c +++ b/source/auth/token_util.c @@ -210,7 +210,7 @@ static NTSTATUS create_builtin_users( void ) status = pdb_create_builtin_alias( BUILTIN_ALIAS_RID_USERS ); if ( !NT_STATUS_IS_OK(status) ) { - DEBUG(0,("create_builtin_users: Failed to create Users\n")); + DEBUG(5,("create_builtin_users: Failed to create Users\n")); return status; } @@ -221,7 +221,7 @@ static NTSTATUS create_builtin_users( void ) sid_append_rid(&dom_users, DOMAIN_GROUP_RID_USERS ); status = pdb_add_aliasmem( &global_sid_Builtin_Users, &dom_users); if ( !NT_STATUS_IS_OK(status) ) { - DEBUG(0,("create_builtin_administrators: Failed to add Domain Users to" + DEBUG(4,("create_builtin_administrators: Failed to add Domain Users to" " Users\n")); return status; } @@ -244,7 +244,7 @@ static NTSTATUS create_builtin_administrators( void ) status = pdb_create_builtin_alias( BUILTIN_ALIAS_RID_ADMINS ); if ( !NT_STATUS_IS_OK(status) ) { - DEBUG(0,("create_builtin_administrators: Failed to create Administrators\n")); + DEBUG(5,("create_builtin_administrators: Failed to create Administrators\n")); return status; } @@ -255,7 +255,7 @@ static NTSTATUS create_builtin_administrators( void ) sid_append_rid(&dom_admins, DOMAIN_GROUP_RID_ADMINS); status = pdb_add_aliasmem( &global_sid_Builtin_Administrators, &dom_admins ); if ( !NT_STATUS_IS_OK(status) ) { - DEBUG(0,("create_builtin_administrators: Failed to add Domain Admins" + DEBUG(4,("create_builtin_administrators: Failed to add Domain Admins" " Administrators\n")); return status; } @@ -273,7 +273,7 @@ static NTSTATUS create_builtin_administrators( void ) if ( ret ) { status = pdb_add_aliasmem( &global_sid_Builtin_Administrators, &root_sid ); if ( !NT_STATUS_IS_OK(status) ) { - DEBUG(0,("create_builtin_administrators: Failed to add root" + DEBUG(4,("create_builtin_administrators: Failed to add root" " Administrators\n")); return status; } @@ -381,7 +381,8 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, become_root(); status = create_builtin_administrators( ); if ( !NT_STATUS_IS_OK(status) ) { - DEBUG(2,("create_local_nt_token: Failed to create BUILTIN\\Administrators group!\n")); + DEBUG(2,("WARNING: Failed to create BUILTIN\\Administrators " + "group! Can Winbind allocate gids?\n")); /* don't fail, just log the message */ } unbecome_root(); @@ -408,7 +409,8 @@ struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, become_root(); status = create_builtin_users( ); if ( !NT_STATUS_IS_OK(status) ) { - DEBUG(2,("create_local_nt_token: Failed to create BUILTIN\\Users group!\n")); + DEBUG(2,("WARNING: Failed to create BUILTIN\\Users group! " + "Can Winbind allocate gids?\n")); /* don't fail, just log the message */ } unbecome_root(); |