From: Kurt Zeilenga Date: Mon, 19 Aug 2002 07:07:25 +0000 (+0000) Subject: Normalized form should be pretty. X-Git-Tag: NO_SLAP_OP_BLOCKS~1214 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=930ecd393066013372f5f481e569eeb8c1bca1c5;p=openldap Normalized form should be pretty. --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 82db98532b..bed230e04b 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -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;