All of winbindd's core caching relies on NDR entries. Those entries can
not be stored in winbindd_cache.tdb via wcache_store_ndr() as long as
there is no SEQNUM entry present in the cache.
Guenther
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15963
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
# Currently winbindd_cache.tdb is not working as expected
^samba3.winbind_cache_sanity.WINBINDD_CACHE_VERSION.*
-^samba3.winbind_cache_sanity.SEQNUM.*
-^samba3.winbind_cache_sanity.NDR.*
return false;
}
+ /*
+ * Create a dummy SEQNUM entry early, otherwise every call via the
+ * winbind NDR interface will fail to call wcache_store_ndr() when there
+ * is no SEQNUM present already
+ */
+ wcache_store_seqnum(lp_workgroup(), 0, 0);
+
return true;
}