r19371: Add two missing refresh_sequence_number calls where they are missing
authorGünther Deschner <gd@samba.org>
Tue, 17 Oct 2006 12:41:24 +0000 (12:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:32 +0000 (12:15 -0500)
just before writing to the winbind cache tdb.

Guenther
(This used to be commit bd8548998b06a84c2e66acbcb68542a4b5d8b8df)

source3/nsswitch/winbindd_cache.c

index 4eece858e1401149d2d6298b5f9d077c3ea85b43..8acd5cfd20857d8ec69f2ab85f1ad7886f7e443b 100644 (file)
@@ -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);
 }