diff options
author | Günther Deschner <gd@samba.org> | 2013-11-13 15:10:33 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-13 19:33:46 +0100 |
commit | 944e9fbc20f125b52e047484dca1792d75561ed9 (patch) | |
tree | a939cd2b9b2c0e2fd039d9595f5ef231063004cb /source3/winbindd/winbindd_cache.c | |
parent | 06be5962aba761ec0ac02fb2b8e108ec1918bfed (diff) | |
download | samba-944e9fbc20f125b52e047484dca1792d75561ed9.tar.gz |
s3-winbindd: Fix #10264, cache_traverse_validate_fn failure for NDR cache entries.
We need to increase the keysize limit for NDR queries. A wbint_LookupSids query
for just 20 sids already hits the older limit.
Guenther
https://bugzilla.samba.org/show_bug.cgi?id=10264
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Wed Nov 13 19:33:46 CET 2013 on sn-devel-104
Diffstat (limited to 'source3/winbindd/winbindd_cache.c')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 91c19fa2b13..267cefc1e01 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -4065,7 +4065,8 @@ static int cache_traverse_validate_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_D struct tdb_validation_status *v_state = (struct tdb_validation_status *)state; /* Paranoia check. */ - if (strncmp("UA/", (const char *)kbuf.dptr, 3) == 0) { + if (strncmp("UA/", (const char *)kbuf.dptr, 3) == 0 || + strncmp("NDR/", (const char *)kbuf.dptr, 4) == 0) { max_key_len = 1024 * 1024; } if (kbuf.dsize > max_key_len) { |