|
|
6729ff |
From 944e9fbc20f125b52e047484dca1792d75561ed9 Mon Sep 17 00:00:00 2001
|
|
|
6729ff |
From: =?UTF-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org>
|
|
|
6729ff |
Date: Wed, 13 Nov 2013 15:10:33 +0100
|
|
|
6729ff |
Subject: [PATCH] s3-winbindd: Fix #10264, cache_traverse_validate_fn failure
|
|
|
6729ff |
for NDR cache entries.
|
|
|
6729ff |
MIME-Version: 1.0
|
|
|
6729ff |
Content-Type: text/plain; charset=UTF-8
|
|
|
6729ff |
Content-Transfer-Encoding: 8bit
|
|
|
6729ff |
|
|
|
6729ff |
We need to increase the keysize limit for NDR queries. A wbint_LookupSids query
|
|
|
6729ff |
for just 20 sids already hits the older limit.
|
|
|
6729ff |
|
|
|
6729ff |
Guenther
|
|
|
6729ff |
|
|
|
6729ff |
https://bugzilla.samba.org/show_bug.cgi?id=10264
|
|
|
6729ff |
Signed-off-by: Günther Deschner <gd@samba.org>
|
|
|
6729ff |
Reviewed-by: Michael Adam <obnox@samba.org>
|
|
|
6729ff |
|
|
|
6729ff |
Autobuild-User(master): Michael Adam <obnox@samba.org>
|
|
|
6729ff |
Autobuild-Date(master): Wed Nov 13 19:33:46 CET 2013 on sn-devel-104
|
|
|
6729ff |
---
|
|
|
6729ff |
source3/winbindd/winbindd_cache.c | 3 ++-
|
|
|
6729ff |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
6729ff |
|
|
|
6729ff |
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
|
|
|
6729ff |
index 91c19fa..267cefc 100644
|
|
|
6729ff |
--- a/source3/winbindd/winbindd_cache.c
|
|
|
6729ff |
+++ b/source3/winbindd/winbindd_cache.c
|
|
|
6729ff |
@@ -4065,7 +4065,8 @@ static int cache_traverse_validate_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_D
|
|
|
6729ff |
struct tdb_validation_status *v_state = (struct tdb_validation_status *)state;
|
|
|
6729ff |
|
|
|
6729ff |
/* Paranoia check. */
|
|
|
6729ff |
- if (strncmp("UA/", (const char *)kbuf.dptr, 3) == 0) {
|
|
|
6729ff |
+ if (strncmp("UA/", (const char *)kbuf.dptr, 3) == 0 ||
|
|
|
6729ff |
+ strncmp("NDR/", (const char *)kbuf.dptr, 4) == 0) {
|
|
|
6729ff |
max_key_len = 1024 * 1024;
|
|
|
6729ff |
}
|
|
|
6729ff |
if (kbuf.dsize > max_key_len) {
|
|
|
6729ff |
--
|
|
|
6729ff |
1.8.3.1
|
|
|
6729ff |
|