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

RE: Odd Error



I have a clear understanding of the difference between NULL and empty strings both in programming a variety of languages and SQL work but I was unsure if and how OpenLDAP supported empty strings and/or NULLs.  Apparently NULLs are not supported and empty Strings only under some circumstances.  Thanks!

Jamey


-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Kurt D.
Zeilenga
Sent: Tuesday, January 06, 2004 7:05 AM
To: ace@suares.nl
Cc: openldap-software@OpenLDAP.org
Subject: Re: Odd Error


No value (NULL) and empty value ("") are not equivalent terms.
The directory allow attributes to have empty values (for
syntaxes where that's valid), but prohibits an attribute from
having no values.

Kurt
 
At 10:22 PM 1/5/2004, Ace Suares wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>
>
>
>> An add operation creates an attribute/value pair, a delete operation
>> removes an attribute/value pair, and a replace operation changes
>> attribute/value1 to attribute/value2
>
>True, by definition.
>
>> > Is the update to an empty string equivalent to an update to NULL (in SQL
>> > speak) in OpenLDAP?
>>
>> No, No, and No.  There is no NULL in LDAP, and no equivalent.
>
>Not neccessarily, as discussed in 
>http://www.openldap.org/lists/openldap-software/200312/msg00158.html
>
>>
>> > Is the update to an empty string causing a problem vs. just removing the
>> > attribute?
>>
>> Remove the attribute.  If it formerly had a value and does not now
>> (string length 0) you want a delete operation.
>
>See also 
>http://www.openldap.org/lists/openldap-software/200312/msg00166.html
>and
>http://www.php.net/manual/en/function.ldap-modify.php
>
>
>As to your original question, I don't have the answer to it.
>
>_Ace
>
>website: http://www.suares.nl * http://www.qwikzite.nl
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
>
>iD8DBQE/+lQ7y7boE8xtIjURAnyjAJ9R6GvJbn0dN+r0aRUx1QMogULekwCfdnCA
>yUqyZlXoyf0w+tvr5uNfDv0=
>=Cyoq
>-----END PGP SIGNATURE-----