don't allow indexing of entryDN (ITS#5790)

This commit is contained in:
Pierangelo Masarati 2008-11-04 11:54:19 +00:00
parent 36124c715a
commit d4970fcb6f

View 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] );