diff options
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 730da7a9b5..c4eab0be96 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -101,6 +101,11 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain) { struct winbind_cache *ret = wcache; + /* we have to know what type of domain we are dealing with first */ + + if ( !domain->initialized ) + set_dc_type_and_flags( domain ); + if (!domain->backend) { extern struct winbindd_methods reconnect_methods; switch (lp_security()) { @@ -365,9 +370,6 @@ static void refresh_sequence_number(struct winbindd_domain *domain, BOOL force) /* important! make sure that we know if this is a native mode domain or not */ - if ( !domain->initialized ) - set_dc_type_and_flags( domain ); - status = domain->backend->sequence_number(domain, &domain->sequence_number); if (!NT_STATUS_IS_OK(status)) { |