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

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



ando@OpenLDAP.org writes:

Log Message:
null length string is not allowed

This fixes a failure analogous to that of '(cn=)' filter for modrdn
and so. What happens is that LDAP_rewrite calls the *normalize
function for the attribute description in each AVA; on turn, the
*normalize function expects to operate on a validated value. IMHO,
each *normalize function should also do validation (at least, complain
about values that wouldn't pass the appropriate *validate function),
otherwise we need to do a validation prior to any normalization.
If this behavior is preferable, then we need to change at least the DN
normalization functions, but I suspect every normalization function
as well.


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