[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
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-----