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

Re: commit: ldap/servers/slapd schema_init.c



ando@OpenLDAP.org wrote:
> 
> Update of /repo/OpenLDAP/pkg/ldap/servers/slapd
> 
> Modified Files:
>         schema_init.c  1.160 -> 1.161
> 
> Log Message:
> a gross attempt to implement a schema-aware normalization

to use this code you need to change the #if 0 at line 264 
in #if 1 and remove the ldap_pvt_str2upper at line 257 of 
file servers/slapd/dn.c

I have a few doubts:
1) what is the normalization function in the Syntax 
structure for? I guess we mean a different type of
normalization when we talk about "normalizing a dn",
because all the *Normalize functions in schema_init.c
do not care about uppercasing case-insensitive strings 
and so; they mostly care about trimming extra space.
2) shouldn't we change the attribute type into 
its canonical name?
3) there's still need to sort the AVAs inside a RDN
4) we need to decide how to deal with string 
representations of attributes that are not reversible
into X.501, as per 5.2. of draft-ietf-ldapbis-dn-XX.txt;
here I really have no clue.

Pierangelo

-- 
Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 |
mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy   |
http://www.aero.polimi.it/~masarati