diff options
author | Jeremy Allison <jra@samba.org> | 2003-06-24 23:07:26 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-06-24 23:07:26 +0000 |
commit | 45f472ba21b45a8796bc6e5c8ff604a977d64c93 (patch) | |
tree | 37aad6a1a54a3de73d8ec918b82e92d19de902f8 | |
parent | 11e620389641b9c3c2e635fbcce1fe8d966ffe19 (diff) | |
download | samba-45f472ba21b45a8796bc6e5c8ff604a977d64c93.tar.gz samba-45f472ba21b45a8796bc6e5c8ff604a977d64c93.tar.bz2 samba-45f472ba21b45a8796bc6e5c8ff604a977d64c93.zip |
Sequence number was not getting updated with ldap hack. Only a bug in this
branch.
Jeremy.
(This used to be commit 19629b41cb9b5e5f9e0d4a6d52af983a4d05c8cb)
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 2 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_rpc.c | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 9f7d3686a5..eb7170ff60 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -338,7 +338,7 @@ static void refresh_sequence_number(struct winbindd_domain *domain, BOOL force) /* see if we have to refetch the domain sequence number */ if (!force && (time_diff < cache_time)) { DEBUG(10, ("refresh_sequence_number: %s time ok\n", domain->name)); - return; + goto done; } /* try to get the sequence number from the tdb cache first */ diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index 131a7cfd43..6436d4860c 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -817,7 +817,6 @@ static NTSTATUS sequence_number(struct winbindd_domain *domain, uint32 *seq) SAM_UNK_CTR ctr; uint16 switch_value = 2; NTSTATUS result; - uint32 seqnum = DOM_SEQUENCE_NONE; POLICY_HND dom_pol; BOOL got_dom_pol = False; uint32 des_access = SEC_RIGHTS_MAXIMUM_ALLOWED; @@ -868,11 +867,11 @@ static NTSTATUS sequence_number(struct winbindd_domain *domain, uint32 *seq) switch_value, &ctr); 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 )); + *seq = ctr.info.inf2.seq_num; + DEBUG(10,("domain_sequence_number: for domain %s is %u\n", domain->name, (unsigned)*seq)); } else { DEBUG(10,("domain_sequence_number: failed to get sequence number (%u) for domain %s\n", - (unsigned)seqnum, domain->name )); + (unsigned)*seq, domain->name )); } done: @@ -882,8 +881,6 @@ static NTSTATUS sequence_number(struct winbindd_domain *domain, uint32 *seq) talloc_destroy(mem_ctx); - *seq = seqnum; - return result; } |