summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-22 07:24:07 +0000
committerJeremy Allison <jra@samba.org>2001-11-22 07:24:07 +0000
commitd3f5d5a4aca0d5bc8c4db7dfa8b766b7cda808eb (patch)
tree364d20de5b5f7a5f3ff991a55c41a71ec66d625d
parent90ed3d47e16a511161532f75b98db3f4b10ba685 (diff)
downloadsamba-d3f5d5a4aca0d5bc8c4db7dfa8b766b7cda808eb.tar.gz
samba-d3f5d5a4aca0d5bc8c4db7dfa8b766b7cda808eb.tar.xz
samba-d3f5d5a4aca0d5bc8c4db7dfa8b766b7cda808eb.zip
Added debugs to track down sequence lookup problems.
Jeremy.
-rw-r--r--source/nsswitch/winbindd_cache.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c
index 1af47e571fc..8ad5bc2e7d8 100644
--- a/source/nsswitch/winbindd_cache.c
+++ b/source/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;
}