[Date Prev][Date Next] [Chronological] [Thread] [Top]

DN normalization enhancement (servers/slapd/dn.c) (ITS#1232)



Full_Name: David Cooper
Version: HEAD
OS: Red Hat Linux 7.1
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (129.6.54.72)


The current dn_validate and dn_normalize functions can not normalize all RFC
2253-compliant forms of a distinguished name to the same value. For example, the
following strings all represent the same DN:

cn=David Cooper
cn="David Cooper"
cn=David\20Cooper
cn=#130C446176696420436F6F706572

Currently, however, the normalized form created by dn_normalize for each of
these strings will be different. I have created new versions of dn_validate,
dn_normalize, dnValidate, and dnNormalize that will normalize all of the above
strings to the same string. The code can also sort multi-valued RDNs and uses
calls to uccanondecomp and uccanoncomp to perform unicode normalization. A patch
file that will work against the latest code in the development branch of the CVS
source tree is available from

http://csrc.nist.gov/pki/testing/openLDAP_contrib.html