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

Re: attributes with empty values



Whether a value can be zero-length depends on the underlying
syntax definition.  DirectoryString values must not be
zero-length.  OctetString values may be zero-length.

Kurt

At 09:54 AM 12/7/2003, Peter Marschall wrote:
>Hi,
>
>On Sunday 07 December 2003 17:38, Ace Suares wrote:
>> On a related note - it seems impossible to give an atribute the empty
>> string as value.
>> [ .. example deleted ..]
>> Is this a problem with the SYNTAX of the attribute, or is this a general
>> thing?
>> Ans is the only way to effect an 'empty' valued attribute, to remove the
>> attribute fromt he entry ? I believe it works that way, but I'd like
>> confirmation. 
>This is the way that I have understood LDAP:
>Attribute values have to be non-empty and unique with regard to the 
>attribute's EQUALITY matching rule.
>Empty attribute values simply do not exist.
>
>> I think I can understand why values may not be 'empty' but
>> can't there be situations where an attribute is a MUST in the schema but
>> can have the empty string as one of it's possible values ?
>In a proprerly designed schema this cannot occur. If the schema designer 
>created the schema with the information above in mind it is logically not 
>possible.
>Either an attribute is a MUST, then it needs to always have a non-empty value,
>or it is a MAY, then its absence is considered legal.
>
>Peter
>
>-- 
>Peter Marschall
>eMail: peter@adpm.de