]> git.sur5r.net Git - openldap/commitdiff
don't allow indexing of entryDN (ITS#5790)
authorPierangelo Masarati <ando@openldap.org>
Tue, 4 Nov 2008 11:54:19 +0000 (11:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 4 Nov 2008 11:54:19 +0000 (11:54 +0000)
servers/slapd/back-bdb/attr.c

index 0ccbc0e8625bb94a99c61e79aacfc4b2177f2c57..2419a343bb02818eee259a5c5fab554be95e23a8 100644 (file)
@@ -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] );