]> git.sur5r.net Git - openldap/commitdiff
ITS#6967 normalize schema RDN
authorHoward Chu <hyc@openldap.org>
Fri, 10 Jun 2011 08:35:19 +0000 (01:35 -0700)
committerHoward Chu <hyc@openldap.org>
Fri, 10 Jun 2011 08:35:19 +0000 (01:35 -0700)
servers/slapd/bconfig.c

index 46191f22fcb0b148042067942c6c0b8633410700..3be11658901039b9f28adf8837dc25d6085894fc 100644 (file)
@@ -6625,11 +6625,12 @@ config_build_schema_inc( ConfigArgs *c, CfEntryInfo *ceparent,
                        bv.bv_len );
                c->value_dn.bv_len += bv.bv_len;
                c->value_dn.bv_val[c->value_dn.bv_len] ='\0';
-               rdn = c->value_dn;
+               rdnNormalize( 0, NULL, NULL, &c->value_dn, &rdn, NULL );
 
                c->ca_private = cf;
                e = config_build_entry( op, rs, ceparent, c, &rdn,
                        &CFOC_SCHEMA, NULL );
+               ch_free( rdn.bv_val );
                if ( !e ) {
                        return -1;
                } else if ( e && cf->c_kids ) {