summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-10-17 12:41:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:32 -0500
commit21344a731c32cc142483ffec6ca230d42bb50e88 (patch)
treef6f4f6bae503bffbe48c906cb4dc16cad0290704 /source3/nsswitch
parent257c5c095b60e10323692cd9595a616499a12ed8 (diff)
downloadsamba-21344a731c32cc142483ffec6ca230d42bb50e88.tar.gz
samba-21344a731c32cc142483ffec6ca230d42bb50e88.tar.bz2
samba-21344a731c32cc142483ffec6ca230d42bb50e88.zip
r19371: Add two missing refresh_sequence_number calls where they are missing
just before writing to the winbind cache tdb. Guenther (This used to be commit bd8548998b06a84c2e66acbcb68542a4b5d8b8df)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 4eece858e1..8acd5cfd20 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -1350,6 +1350,8 @@ do_query:
status = domain->backend->name_to_sid(domain, mem_ctx, domain_name, name, sid, type);
/* and save it */
+ refresh_sequence_number(domain, False);
+
if (domain->online && !is_null_sid(sid)) {
wcache_save_name_to_sid(domain, status, domain_name, name, sid, *type);
}
@@ -2325,6 +2327,7 @@ void cache_name2sid(struct winbindd_domain *domain,
const char *domain_name, const char *name,
enum lsa_SidType type, const DOM_SID *sid)
{
+ refresh_sequence_number(domain, False);
wcache_save_name_to_sid(domain, NT_STATUS_OK, domain_name, name,
sid, type);
}