]> git.sur5r.net Git - openldap/commitdiff
Normalized form should be pretty.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 19 Aug 2002 07:07:25 +0000 (07:07 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 19 Aug 2002 07:07:25 +0000 (07:07 +0000)
servers/slapd/dn.c

index 82db98532b97bbbd17f9e7cfbc757b18dac3048e..bed230e04ba5001cc84cad39fe017c0799313b31 100644 (file)
@@ -393,7 +393,8 @@ dnNormalize2(
                /*
                 * Back to string representation
                 */
-               rc = ldap_dn2bv( dn, out, LDAP_DN_FORMAT_LDAPV3 );
+               rc = ldap_dn2bv( dn, out,
+                       LDAP_DN_FORMAT_LDAPV3 | LDAP_DN_PRETTY );
 
                ldap_dnfree( dn );
 
@@ -561,7 +562,8 @@ dnPrettyNormal(
                        return LDAP_INVALID_SYNTAX;
                }
 
-               rc = ldap_dn2bv( dn, normal, LDAP_DN_FORMAT_LDAPV3 );
+               rc = ldap_dn2bv( dn, normal,
+                       LDAP_DN_FORMAT_LDAPV3 | LDAP_DN_PRETTY );
 
                ldap_dnfree( dn );
                if ( rc != LDAP_SUCCESS ) {
@@ -674,7 +676,9 @@ dnExtractRdn(
                return rc;
        }
 
-       rc = ldap_rdn2bv( tmpRDN, rdn, LDAP_DN_FORMAT_LDAPV3 );
+       rc = ldap_rdn2bv( tmpRDN, rdn,
+               LDAP_DN_FORMAT_LDAPV3 | LDAP_DN_FORMAT_PRETTY );
+
        ldap_rdnfree( tmpRDN );
        if ( rc != LDAP_SUCCESS ) {
                return rc;