Full_Name: Julia Bremer
OS: debian / UCS 4.4
Submission from: (NULL) (22.214.171.124)
Trying to set the value of the attribute preferredDeliveryMethod to a sequence
of items, separated by " $ ", e.g "telephone $ videotex" fails with
ldap_modify: Invalid syntax (21)
additional info: preferredDeliveryMethod: value #0 invalid per syntax
even though the syntax is correct according to the RFC4517
This is due to an error in the method deliveryMethodValidate in
servers/slapd/schema_init.c which causes the function to check the string
backwards after a space character occurs.
The attached patch fixes this, so that the syntax is validated correctly.
Thanks for the report, committed to master. Looks like this code has never been used
since Kurt wrote it in 2004. I've tested it locally now but would ask whether you
time to also add a check into the test suite. Thanks.
Univention hereby place the following modifications to OpenLDAP Software (and
only these modifications) into the public domain. Hence, these modifications may
be freely used and/or redistributed for any purpose with or without attribution
and/or other notice.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/