s3:winbind: Do not lookup local system accounts in AD
authorAndreas Schneider <asn@samba.org>
Mon, 2 Jul 2018 14:38:01 +0000 (16:38 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 4 Jul 2018 21:55:56 +0000 (23:55 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13503

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Jul  4 23:55:56 CEST 2018 on sn-devel-144

selftest/knownfail.d/upn_handling
source3/winbindd/winbindd_util.c

index 7dc9b71dc5e83a3fd297121d10362bf12095e7af..bcbedb4f90311a8fabb62ed3c704df6ed1a8fa1e 100644 (file)
@@ -1,10 +1,8 @@
 ^samba3\.wbinfo_user_info\.name_to_sid\.upn\.testdenied_upn.ad_member
 ^samba3\.wbinfo_user_info\.user_info\.upn\.testdenied_upn.ad_member
-^samba3\.wbinfo_user_info\.getpwnam\.local\.alice.ad_member
 ^samba3\.wbinfo_user_info\.user_info\.domain\.alice.fl2008r2dc
 ^samba3\.wbinfo_user_info\.user_info\.upn\.alice.fl2008r2dc
 ^samba3\.wbinfo_user_info\.user_info\.domain\.jane.fl2008r2dc
 ^samba3\.wbinfo_user_info\.user_info\.upn\.jane\.doe.fl2008r2dc
 ^samba3\.wbinfo_user_info\.name_to_sid\.upn\.testdenied_upn.fl2008r2dc
 ^samba3\.wbinfo_user_info\.user_info\.upn\.testdenied_upn.fl2008r2dc
-^samba3\.wbinfo_user_info\.getpwnam\.local\.alice.fl2008r2dc
index 71735edf9c7cbf63d7c80a6e4bca40fd8dfd5e6a..f913d39557505f45eb36384e7655a26f3a5f51e3 100644 (file)
@@ -1605,6 +1605,8 @@ bool parse_domain_user(const char *domuser,
                } else if (assume_domain(lp_workgroup())) {
                        fstrcpy(domain, lp_workgroup());
                        fstrcpy(namespace, domain);
+               } else {
+                       fstrcpy(namespace, lp_netbios_name());
                }
        }