diff options
author | Gerald Carter <jerry@samba.org> | 2005-08-16 15:47:52 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2005-08-16 15:47:52 +0000 |
commit | dfdd204930e7db9a553f77b28e077d1eafcbc0dd (patch) | |
tree | 728d36528014065626aa09fdf80fa6a74f8d2c6e | |
parent | 763823b372dd478cd5895331f48051da31854570 (diff) | |
download | samba-dfdd204930e7db9a553f77b28e077d1eafcbc0dd.tar.gz |
r9322: fixing debug log and ensuring that we set the right winbind_methods
pointer in get_cache() by requiring that all domain structure be
initialized with the set_dc_type_and_flags().
-rw-r--r-- | source/nsswitch/winbindd.c | 2 | ||||
-rw-r--r-- | source/nsswitch/winbindd_cache.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/source/nsswitch/winbindd.c b/source/nsswitch/winbindd.c index 078aeeb059a..dec52088f87 100644 --- a/source/nsswitch/winbindd.c +++ b/source/nsswitch/winbindd.c @@ -569,7 +569,7 @@ static void request_len_recv(void *private_data, BOOL success) } if (*(uint32 *)(&state->request) != sizeof(state->request)) { - DEBUG(0,("process_loop: Invalid request size received: %d\n", + DEBUG(0,("request_len_recv: Invalid request size received: %d\n", *(uint32 *)(&state->request))); state->finished = True; return; diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c index 730da7a9b52..c4eab0be96b 100644 --- a/source/nsswitch/winbindd_cache.c +++ b/source/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)) { |