summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-25 05:22:38 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-25 08:39:35 +0100
commitda8e8e5fa5574eab635b9b7b7bb4ccd898889e85 (patch)
tree01d0c3a50acf04af0d91194a74483ebc25be8693
parent34e7d960d0065a51b5524630a6699834c9b362b1 (diff)
downloadsamba-da8e8e5fa5574eab635b9b7b7bb4ccd898889e85.tar.gz
samba-da8e8e5fa5574eab635b9b7b7bb4ccd898889e85.tar.bz2
samba-da8e8e5fa5574eab635b9b7b7bb4ccd898889e85.zip
s3:smb2_sessetup: call set_current_user_info() and reload_services() on success
This matches the smb1 code. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 25 08:39:35 CET 2012 on sn-devel-104
-rw-r--r--source3/smbd/smb2_sesssetup.c11
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;