diff options
-rw-r--r-- | source3/auth/auth_builtin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/auth/auth_builtin.c b/source3/auth/auth_builtin.c index d54a8660b3..09b9a36cdf 100644 --- a/source3/auth/auth_builtin.c +++ b/source3/auth/auth_builtin.c @@ -41,8 +41,11 @@ static NTSTATUS check_guest_security(const struct auth_context *auth_context, NTSTATUS nt_status = NT_STATUS_LOGON_FAILURE; if (!(user_info->internal_username.str - && *user_info->internal_username.str)) + && *user_info->internal_username.str)) { + become_root(); nt_status = make_server_info_guest(server_info); + unbecome_root(); + } return nt_status; } |