summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-07-02 16:38:01 +0200
committerKarolin Seeger <kseeger@samba.org>2018-08-23 10:38:28 +0200
commit3cc8f9d7c7a65a6cf62ac9075803a962ee777d72 (patch)
tree6a206cbc3d85f57f6dee9f1322acebdd8a5c37a0 /source3
parent03e73ff65f110ba58250e84c4a3f23efe224653e (diff)
downloadsamba-3cc8f9d7c7a65a6cf62ac9075803a962ee777d72.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> (cherry picked from commit 9f28d30633af721efec02d8816a9fa48f795a01c)
Diffstat (limited to 'source3')
-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 aa633419c9a..7a5fb73cdef 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());
}
}