From d4970fcb6fb50d9ef2e168bb0087badfb60f7a3b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 4 Nov 2008 11:54:19 +0000 Subject: [PATCH] don't allow indexing of entryDN (ITS#5790) --- servers/slapd/back-bdb/attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/attr.c b/servers/slapd/back-bdb/attr.c index 0ccbc0e862..2419a343bb 100644 --- a/servers/slapd/back-bdb/attr.c +++ b/servers/slapd/back-bdb/attr.c @@ -215,7 +215,7 @@ bdb_attr_index_config( goto done; } - if( slap_ad_is_binary( ad ) ) { + if( ad == slap_schema.si_ad_entryDN || slap_ad_is_binary( ad ) ) { if (c_reply) { snprintf(c_reply->msg, sizeof(c_reply->msg), "index of attribute \"%s\" disallowed", attrs[i] ); -- 2.39.5