1
Index: samba/source/winbindd/winbindd_cache.c
2
===================================================================
3
--- a/samba/source/winbindd/winbindd_cache.c (revision 27109)
4
+++ b/samba/source/winbindd/winbindd_cache.c (working copy)
5
@@ -3582,12 +3582,17 @@
6
static int cache_traverse_validate_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *state)
9
+ unsigned int max_key_len = 1024;
10
struct tdb_validation_status *v_state = (struct tdb_validation_status *)state;
13
- if (kbuf.dsize > 1024) {
14
- DEBUG(0,("cache_traverse_validate_fn: key length too large (%u) > 1024\n\n",
15
- (unsigned int)kbuf.dsize ));
16
+ if (strncmp("UA/", (const char *)kbuf.dptr, 3) == 0) {
17
+ max_key_len = 1024 * 1024;
19
+ if (kbuf.dsize > max_key_len) {
20
+ DEBUG(0, ("cache_traverse_validate_fn: key length too large: "
22
+ (unsigned int)kbuf.dsize, (unsigned int)max_key_len));