From: Juan Gomez Date: Tue, 25 May 1999 22:41:54 +0000 (+0000) Subject: Normalize attribute name when adding index, otherwise we end with duplicated X-Git-Tag: OPENLDAP_REL_ENG_1_2_2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dea63aea4203257de8dcd534afed9754b39968c3;p=thirdparty%2Fopenldap.git Normalize attribute name when adding index, otherwise we end with duplicated inconsistent index files (i.e. CN.gdbm and cn.gdbm). --- diff --git a/servers/slapd/back-ldbm/index.c b/servers/slapd/back-ldbm/index.c index 45a8a7eb1c..aec6a9bbe7 100644 --- a/servers/slapd/back-ldbm/index.c +++ b/servers/slapd/back-ldbm/index.c @@ -231,7 +231,7 @@ index_add_values( Debug( LDAP_DEBUG_TRACE, "=> index_add_values( \"%s\", %ld )\n", type, id, 0 ); - + attr_normalize(type); attr_masks( be->be_private, type, &indexmask, &syntax ); if ( indexmask == 0 ) { return( 0 );