diff options
author | Jeremy Allison <jra@samba.org> | 2001-11-22 07:24:07 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-11-22 07:24:07 +0000 |
commit | ee58402ac4cb4acc52bfe8f2c4dfb39f910cf27c (patch) | |
tree | 1ede1c51eef0bfee433157099268159234afaf95 /source3 | |
parent | 59b2e772e254aa567b18309e578ea9af6b1ab1e4 (diff) | |
download | samba-ee58402ac4cb4acc52bfe8f2c4dfb39f910cf27c.tar.gz samba-ee58402ac4cb4acc52bfe8f2c4dfb39f910cf27c.tar.bz2 samba-ee58402ac4cb4acc52bfe8f2c4dfb39f910cf27c.zip |
Added debugs to track down sequence lookup problems.
Jeremy.
(This used to be commit d3f5d5a4aca0d5bc8c4db7dfa8b766b7cda808eb)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 1af47e571f..8ad5bc2e7d 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -84,8 +84,13 @@ static uint32 domain_sequence_number(struct winbindd_domain *domain) result = cli_samr_query_dom_info(hnd->cli, mem_ctx, &dom_pol, switch_value, &ctr); - if (NT_STATUS_IS_OK(result)) + if (NT_STATUS_IS_OK(result)) { seqnum = ctr.info.inf2.seq_num; + DEBUG(10,("domain_sequence_number: for domain %s is %u\n", domain->name, (unsigned)seqnum )); + } else { + DEBUG(10,("domain_sequence_number: failed to get sequence number (%u) for domain %s\n", + (unsigned)seqnum, domain->name )); + } done: @@ -134,9 +139,10 @@ static uint32 cached_sequence_number(struct winbindd_domain *domain) static BOOL cache_domain_expired(struct winbindd_domain *domain, uint32 seq_num) { - if (cached_sequence_number(domain) != seq_num) { - DEBUG(3,("seq %u for %s has expired\n", (unsigned)seq_num, - domain->name)); + uint32 cache_seq = cached_sequence_number(domain); + if (cache_seq != seq_num) { + DEBUG(3,("seq %u for %s has expired (not == %u)\n", (unsigned)seq_num, + domain->name, (unsigned)cache_seq )); return True; } |