summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-07-08 15:00:49 +0200
committerStefan Metzmacher <metze@samba.org>2020-08-10 09:25:17 +0000
commit12997bb81961e98668d3de16fdb09ada3996408d (patch)
treea988210534d34058e6a3054926221d3388b32aa0 /selftest
parentab227e7db1cc41dbd8667da752e9420cef1091a1 (diff)
downloadsamba-12997bb81961e98668d3de16fdb09ada3996408d.tar.gz
winbind: Add test for lookuprids cache problem
When reading entries from gencache, wb_cache_rids_to_names() can return STATUS_SOME_UNMAPPED, which _wbint_LookupRids() does not handle correctly. This test enforces this situation by filling gencache with one wbinfo -R and then erasing the winbindd_cache.tdb. This forces winbind to enter the domain helper process, which will then read from gencache filled with the previous wbinfo -R. Without having the entries cached this does not happen because wb_cache_rids_to_names() via the do_query: path calls deep inside calls dcerpc_lsa_lookup_sids_noalloc(), which hides the STATUS_SOME_UNMAPPED that came in as lsa_LookupSids result value. Bug: https://bugzilla.samba.org/show_bug.cgi?id=14435 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 04eafce653afcff517317d2b190acc4f0cbf4c61)
Diffstat (limited to 'selftest')
-rw-r--r--selftest/knownfail.d/lookuprids_cache1
1 files changed, 1 insertions, 0 deletions
diff --git a/selftest/knownfail.d/lookuprids_cache b/selftest/knownfail.d/lookuprids_cache
new file mode 100644
index 00000000000..d3c40a62b45
--- /dev/null
+++ b/selftest/knownfail.d/lookuprids_cache
@@ -0,0 +1 @@
+^samba.wbinfo_lookuprids_cache.lookuprids2\(nt4_member:local\) \ No newline at end of file