s4:auth: make use of lpcfg_sam_name() in authsam_get_user_info_dc_principal()
authorStefan Metzmacher <metze@samba.org>
Thu, 7 Jan 2016 13:52:25 +0000 (14:52 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Jun 2016 01:30:26 +0000 (03:30 +0200)
This is more generic and matches all other places.

As this is only used in the KDC it's not a real logic change.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/sam.c

index 32e48fb3f36a667f71cc072aeb6235ddd35a6a66..56b64e50093b7d85ad1f4b14ba7f16e93d948591 100644 (file)
@@ -629,7 +629,7 @@ NTSTATUS authsam_get_user_info_dc_principal(TALLOC_CTX *mem_ctx,
 
        nt_status = authsam_make_user_info_dc(tmp_ctx, sam_ctx,
                                             lpcfg_netbios_name(lp_ctx),
-                                            lpcfg_workgroup(lp_ctx),
+                                            lpcfg_sam_name(lp_ctx),
                                             domain_dn,
                                             msg,
                                             user_sess_key, lm_sess_key,