summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-07-02 16:38:01 +0200
committerRalph Boehme <slow@samba.org>2018-07-04 23:55:56 +0200
commit9f28d30633af721efec02d8816a9fa48f795a01c (patch)
tree0cb6e54118dfc39fa3333071bfc7361fec9a7969 /source3/winbindd
parent8e96e9ea46351de34ad5cac9a9a9ece4226b462c (diff)
downloadsamba-9f28d30633af721efec02d8816a9fa48f795a01c.tar.gz
s3:winbind: Do not lookup local system accounts in AD
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
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c
index 71735edf9c7..f913d395575 100644
--- a/source3/winbindd/winbindd_util.c
+++ b/source3/winbindd/winbindd_util.c
@@ -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());
}
}