From 14f2ebe1d3f02baf10554340058a48000a0ed728 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 9 Mar 2004 20:43:27 +0000 Subject: [PATCH] '=' must be escaped (and escapable by '\') according to RFC2253 and draft-ietf-ldapbis-dn-XX (ITS#3009; must have slipped thru some changes long time ago...) --- libraries/libldap/getdn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 40258b0722..e14342db77 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -471,7 +471,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) ) -- 2.39.5