]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:auth/auth_generic: for now call sub_set_smb_name() and lp_load()
authorStefan Metzmacher <metze@samba.org>
Thu, 26 Jan 2012 08:21:21 +0000 (09:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 26 Jan 2012 16:58:17 +0000 (17:58 +0100)
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

source3/auth/auth_generic.c

index 6db761b0b916279c6d3bfc5308e3c23dbfac804e..38968a790a2311ebdfb793f04fa7fb5674fb6c1c 100644 (file)
@@ -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 */,