summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-26 09:21:21 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-26 17:58:17 +0100
commit633a28b276a98628c333b8c8b20dfe30c099caf5 (patch)
treebdb4eae7f4869f332c8c1ae175f68946961ea680 /source3
parent01588585b172a1428ca2332514250be2f99490c7 (diff)
downloadsamba-633a28b276a98628c333b8c8b20dfe30c099caf5.tar.gz
samba-633a28b276a98628c333b8c8b20dfe30c099caf5.tar.bz2
samba-633a28b276a98628c333b8c8b20dfe30c099caf5.zip
s3:auth/auth_generic: for now call sub_set_smb_name() and lp_load()
This matches the auth_ntlmssp case and the smbd/sesssetup.c code. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 26 17:58:17 CET 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_generic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/auth/auth_generic.c b/source3/auth/auth_generic.c
index 6db761b0b9..38968a790a 100644
--- a/source3/auth/auth_generic.c
+++ b/source3/auth/auth_generic.c
@@ -127,6 +127,12 @@ static NTSTATUS auth3_generate_session_info_pac(struct auth4_context *auth_ctx,
netsamlogon_cache_store(ntuser, &logon_info->info3);
}
+ /* setup the string used by %U */
+ sub_set_smb_name(username);
+
+ /* reload services so that the new %U is taken into account */
+ lp_load(get_dyn_CONFIGFILE(), false, false, true, true);
+
status = make_session_info_krb5(mem_ctx,
ntuser, ntdomain, username, pw,
logon_info, is_guest, is_mapped, NULL /* No session key for now, caller will sort it out */,