]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix dimap for trusted domains only case
authorSimo Sorce <idra@samba.org>
Tue, 16 Oct 2007 18:06:33 +0000 (14:06 -0400)
committerSimo Sorce <idra@samba.org>
Tue, 16 Oct 2007 18:06:33 +0000 (14:06 -0400)
source/nsswitch/idmap.c

index e2fa41611962fc5cdcbbe69ae9947d5f3fe6928c..db1c6f3023b8a56d47ce30854521fd24fd95944e 100644 (file)
@@ -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 */