From abde8c438da60d054b8ed0c7b087e4673e63ae13 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 24 Mar 2005 14:39:55 +0000 Subject: r6036: patch from Lin Li to ensure trusted domains are initialized whenenumerating users and groups (This used to be commit 105a63c207e8d2b03a30dec2b8b55b92047cba80) --- source3/nsswitch/winbindd_group.c | 4 ++++ source3/nsswitch/winbindd_user.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index 1af9daae46..c2371c48c5 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -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); diff --git a/source3/nsswitch/winbindd_user.c b/source3/nsswitch/winbindd_user.c index fc3fe0f963..e879275c63 100644 --- a/source3/nsswitch/winbindd_user.c +++ b/source3/nsswitch/winbindd_user.c @@ -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; -- cgit