From 633a28b276a98628c333b8c8b20dfe30c099caf5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 26 Jan 2012 09:21:21 +0100 Subject: 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 Autobuild-Date: Thu Jan 26 17:58:17 CET 2012 on sn-devel-104 --- source3/auth/auth_generic.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */, -- cgit