From 5ec7b9f8b9941c1a0adcd10d52fdffc893c1b1a1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 16 Oct 2007 14:06:33 -0400 Subject: [PATCH] Fix dimap for trusted domains only case --- source/nsswitch/idmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/nsswitch/idmap.c b/source/nsswitch/idmap.c index e2fa4161196..db1c6f3023b 100644 --- a/source/nsswitch/idmap.c +++ b/source/nsswitch/idmap.c @@ -389,7 +389,8 @@ NTSTATUS idmap_init(void) continue; } - if (strequal(dom_list[i], lp_workgroup())) { + if ((dom_list[i] != default_domain) && + strequal(dom_list[i], lp_workgroup())) { pri_dom_is_in_list = True; } /* init domain */ -- 2.47.3