]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-winbindd: Fix winbind NDR caching.
authorGünther Deschner <gd@samba.org>
Thu, 17 Jul 2025 14:49:03 +0000 (16:49 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 8 Dec 2025 08:56:33 +0000 (08:56 +0000)
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>
selftest/knownfail
source3/winbindd/winbindd_cache.c

index e077fbc85530c8b9ae9cff5e390beaf63c8957d7..19955ec8ca3bea87661e4c1f61f331b3700df27c 100644 (file)
 
 # 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.*
index eb79586a2ca6108c8af5a5440fbfff55a06f1602..1fb1a2f24caa195bd1149849a11e1622f63790e6 100644 (file)
@@ -3196,6 +3196,13 @@ static bool init_wcache(void)
                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;
 }