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

Re: Blank Attribute - further question



At 11:26 AM 10/23/2005, Daniel Henninger wrote:
>In reference to the previous question from August:
>
>>At 07:22 AM 8/11/2005, Ivan.Garcia@leroymerlin.es wrote:
>>>adding new entry "uid=30000001,ou=people,ou=es- lm,o=corp.happyparty.com"
>>>
>>>ldap_add: Invalid syntax (21)
>>>        additional info: mail: value #0 invalid per syntax
>>>
>>>this appears when the mail attribute is blank, but when the mail  
>attribute
>>>is writted that´s all OK.
>>
>>If you example the technical specification for the LDAP syntax
>>of the 'mail' attribute you will find that it doesn't allow
>>empty values.  Hence, slapd(8)'s response.
>>
>>Kurt
>
>I am having trouble figuring out what it is about the mail attribute  
>that indicates "can not be blank".

See Section 9.3.3 (RFC 822 Mailbox) of RFC 1274 (also known in
as the 'mail' attribute in LDAP).  Note the SIZE restriction.
slapd(8) is coded to enforce this restriction.

Also note that a valid RFC 882 Mailbox [RFC 2822] cannot be
zero-length.  If the object has no mailbox associated with it,
the 'mail' attribute should not be present.  Providing a
'mail' attribute (or any other attribute for that matter)
with garbage values will lead to interoperability problems.

Kurt