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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 23 Aug 2018 08:38:28 +0000 (10:38 +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>
(cherry picked from commit 9f28d30633af721efec02d8816a9fa48f795a01c)

source3/winbindd/winbindd_util.c

index aa63341..7a5fb73 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());
                }
        }