Hi,
I’ve just had some funny moments with openldap. I had some bad written code (from my self ☺) where I’ve tried to set a description (2.5.4.13) attribute with an empty string (“”). The result was a error massage: description: value #0 invalid per syntax the best Thing about that is, that the Spring security framework interpreted the error for a following Boolean attribute.
This is only for your amusement and to help other with similar problems
Greetings John
Fischer, Johannes wrote:
I had some bad written code (from my self ☺) where I’ve tried to set a description (2.5.4.13) attribute with an empty string (“”). The result was a error massage: description: value #0 invalid per syntax
Works as designed: The LDAP syntax Directory String does not allow a null/empty string.
Only LDAP syntax IA5String allows null string (but does not allow anything else than ASCII).
I consider relying on null strings to be a design flaw.
Ciao, Michael.
openldap-technical@openldap.org