summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-11-13 15:10:33 +0100
committerKarolin Seeger <kseeger@samba.org>2013-11-15 11:34:09 +0100
commit5df543b844af4908b6a467afa12ed9ae3275d921 (patch)
tree98c1624339bff11c75b7d91cc91f13bb7e757424 /source3
parentd815b15181243e6eddb20fe5d7aeaf33bb68ec7e (diff)
downloadsamba-5df543b844af4908b6a467afa12ed9ae3275d921.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 (cherry picked from commit 944e9fbc20f125b52e047484dca1792d75561ed9)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 72529276c8..fe05759131 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -4064,7 +4064,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) {