From: Pierangelo Masarati Date: Tue, 16 Mar 2004 18:08:02 +0000 (+0000) Subject: fix '=' escape in DN (ITS#3009) X-Git-Tag: OPENLDAP_REL_ENG_2_1_28~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae3bee3add55404e34224a8bc9d00e096689a832;p=thirdparty%2Fopenldap.git fix '=' escape in DN (ITS#3009) --- diff --git a/CHANGES b/CHANGES index bcc173237d..19158aa2b1 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ OpenLDAP 2.1.28 Engineering Fixed back-bdb slapadd crash (ITS#2974) Fixed typo in ACL STYLE slap_style_e enum (ITS#3001) Added ACL set logging (ITS#2949) + Fixed '=' escape in DN (ITS#3009) Documentation Fixed ldapmodify(1) manpage (ITS#3002) Fixed ldapmodrdn(1) manpage (ITS#3003) diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index ceb199427d..8a3f1c0046 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -465,7 +465,8 @@ ldap_dn_normalize( LDAP_CONST char *dnin, ( LDAP_DN_RDN_SEP(c) || LDAP_DN_AVA_SEP(c) ) #define LDAP_DN_NE(c) \ ( LDAP_DN_RDN_SEP_V2(c) || LDAP_DN_AVA_SEP(c) \ - || LDAP_DN_QUOTES(c) || (c) == '<' || (c) == '>' ) + || LDAP_DN_AVA_EQUALS(c) || LDAP_DN_QUOTES(c) \ + || (c) == '<' || (c) == '>' ) #define LDAP_DN_MAYESCAPE(c) \ ( LDAP_DN_ESCAPE(c) || LDAP_DN_NE(c) \ || LDAP_DN_ASCII_SPACE(c) || LDAP_DN_OCTOTHORPE(c) )