diff options
author | Gerald W. Carter <jerry@samba.org> | 2008-04-30 09:43:00 -0500 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-30 09:43:00 -0500 |
commit | d6aa45d29ced8c86b3b9cb100e01ab02ac149c28 (patch) | |
tree | 5a586f955ab426b8c1a2c5c5bf2b81c2d15cb9cc /source3 | |
parent | 65ad34ba09b3e17fe2e3abe1db5bf4644a28c890 (diff) | |
download | samba-d6aa45d29ced8c86b3b9cb100e01ab02ac149c28.tar.gz samba-d6aa45d29ced8c86b3b9cb100e01ab02ac149c28.tar.bz2 samba-d6aa45d29ced8c86b3b9cb100e01ab02ac149c28.zip |
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.
(This used to be commit 2983b9dc790e0f90ec1e6add131438c6bfd361b4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/token_util.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 6720a2cbd8..cd67c2a213 100644 --- a/source3/auth/token_util.c +++ b/source3/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(); |