From 84c7a43dcc098bfbdfda3834209a0a304ba6b0f9 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 16 Mar 2004 18:05:50 +0000 Subject: [PATCH] fix '=' escape in DN (ITS#3009) --- CHANGES | 1 + libraries/libldap/getdn.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 912f3367e3..a6a054a8df 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ OpenLDAP 2.2.7 Engineering Fixed erroneous illegal filter handling (ITS#2977) Fixed monitor backend crash when used with overlays (ITS#3023) Fixed oracle-related issues in back-sql (ITS#2641) + Fixed '=' escape in DN (ITS#3009) Documentation Fixed ldapmodrdn(1) manpage (ITS#3003) 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.2