Bug 9074 - Too long NDR key in winbindd_cache.tdb
Summary: Too long NDR key in winbindd_cache.tdb
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 3.6.20
Hardware: All All
: P5 major
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 20:39 UTC by Michael Letzgus-Koppmann
Modified: 2025-09-19 02:38 UTC (History)
1 user (show)

See Also:


Attachments
Allow larger keys for NDR keys, modified calculation for UA keys (705 bytes, patch)
2012-07-31 20:43 UTC, Michael Letzgus-Koppmann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Letzgus-Koppmann 2012-07-31 20:39:46 UTC
Message:
cache_traverse_validate_fn: key length too large: (1029) > (1024)

In the tdb dump I've found this entry: key(1029) = "NDR/AD/2/\..."
So there really is a long key.

After removing the cache.tdb there is no such long entry, even after
enumerating/listing all groups (~2000) and users (~30000).

In both cases (database with an without the long key) "smbcontrol winbindd
validate-cache" says: Winbindd cache is valid.



Same problem here:
https://bugzilla.samba.org/show_bug.cgi?id=8925
Comment 1 Michael Letzgus-Koppmann 2012-07-31 20:43:29 UTC
Created attachment 7731 [details]
Allow larger keys for NDR keys, modified calculation for UA keys

Allow larger keys for non delivery reports (8*max_key_len)
Modified calculation for UA-Keys (1024*max_key_len)

After applying this patch no problems occur with my "faulty" winbindd_cache.tdb
Comment 2 Dmitry 2012-08-17 13:11:30 UTC
Today samba works fine at last 8 hours. But now i had same problem:

wbinfo -r ADM_Zabolotny_DA
10006
10000
Comment 9 Douglas Bagnall 2025-06-10 23:15:03 UTC
Fixed as bug #10264 in commit 944e9fbc20f125b52e047484dca1792d75561ed9