fix '=' escape in DN (ITS#3009)

This commit is contained in:
Pierangelo Masarati 2004-03-16 18:08:02 +00:00
parent 1b1b04f37a
commit ae3bee3add
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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) )