r6036: patch from Lin Li <linl@xandros.com> to ensure trusted domains are initialized...
authorGerald Carter <jerry@samba.org>
Thu, 24 Mar 2005 14:39:55 +0000 (14:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:17 +0000 (10:56 -0500)
(This used to be commit 105a63c207e8d2b03a30dec2b8b55b92047cba80)

source3/nsswitch/winbindd_group.c
source3/nsswitch/winbindd_user.c

index 1af9daae46e73a4211a55dc9ddae41b519de1e48..c2371c48c58c0f9d45361162be7ce01c1ef147b9 100644 (file)
@@ -857,6 +857,10 @@ enum winbindd_result winbindd_list_groups(struct winbindd_cli_state *state)
                   
                if ( *which_domain && !strequal(which_domain, domain->name) )
                        continue;
+
+               if ( !domain->initialized )
+                       set_dc_type_and_flags( domain );
+
                        
                ZERO_STRUCT(groups);
 
index fc3fe0f9631791d4b1bd46c4ed89d9f081c33268..e879275c6329e9d810cbbc37dddb63ac61d13be6 100644 (file)
@@ -606,6 +606,9 @@ enum winbindd_result winbindd_list_users(struct winbindd_cli_state *state)
                   
                if ( *which_domain && !strequal(which_domain, domain->name) )
                        continue;
+
+               if ( !domain->initialized )
+                       set_dc_type_and_flags( domain );
                        
                methods = domain->methods;