diff options
-rw-r--r-- | source3/smbd/smb2_sesssetup.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index 0cd24c9b7e..3163ac0794 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -261,6 +261,12 @@ static NTSTATUS smbd_smb2_session_setup_krb5(struct smbd_smb2_session *session, goto fail; } + set_current_user_info(session->session_info->unix_info->sanitized_username, + session->session_info->unix_info->unix_name, + session->session_info->info->domain_name); + + reload_services(smb2req->sconn, conn_snum_used, true); + session->status = NT_STATUS_OK; /* @@ -473,6 +479,11 @@ static NTSTATUS smbd_smb2_common_ntlmssp_auth_return(struct smbd_smb2_session *s return NT_STATUS_LOGON_FAILURE; } + set_current_user_info(session->session_info->unix_info->sanitized_username, + session->session_info->unix_info->unix_name, + session->session_info->info->domain_name); + + reload_services(smb2req->sconn, conn_snum_used, true); session->status = NT_STATUS_OK; |