summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-08 00:55:13 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-08 00:55:13 +0000
commit0e12b8827402155095b1d8d5be23aa26d26b200a (patch)
tree42018524fdc034459858694e22f5672b884b1a22
parent125e7e8e25d306fcba1f56692bf549337792d017 (diff)
downloadsamba-0e12b8827402155095b1d8d5be23aa26d26b200a.tar.gz
samba-0e12b8827402155095b1d8d5be23aa26d26b200a.tar.bz2
samba-0e12b8827402155095b1d8d5be23aa26d26b200a.zip
The correct test for 'is our primary domain' is domain->primary
(This used to be commit 703f101136b8e9bbc16f57a37cd9d9d739606a84)
-rw-r--r--source3/nsswitch/winbindd_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 08b5be827d..d1e5c8cb49 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/nsswitch/winbindd_misc.c
@@ -132,7 +132,7 @@ enum winbindd_result winbindd_list_trusted_domains(struct winbindd_cli_state
/* Skip own domain */
- if (strequal(domain->name, lp_workgroup())) continue;
+ if (domain->primary) continue;
/* Add domain to list */