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

Re: (ITS#9067) preferredDeliveryMethod syntax evaluation incorrect



bremer@univention.de wrote:
> Full_Name: Julia Bremer
> Version: 2.4.45
> OS: debian / UCS 4.4
> URL: http://updates.software-univention.de/download/temp/openldap/fix-syntax-evaluation-of-preferredDeliveryMethod.patch
> Submission from: (NULL) (82.198.197.8)
> 
> 
> 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 
> (Syntax 1.3.6.1.4.1.1466.115.121.1.14).
> https://tools.ietf.org/html/rfc4517#section-3.3.5
> 
> 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 have
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/