note 9706 added to ldap_mod_del
| From: | mark at cushman dot net | Date: | Mon, 20 Nov 2000 14:17:16 +0000 |
| Subject: | note 9706 added to ldap_mod_del | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7914@lists.php.net to get a copy of this message | ||
I have found that the syntax:
$entry["mail"] = "";
Will NOT delete the mail attribute using the OpenLDAP server. You must specify the attribute value
to delete it successfully, otherwise you will recieve an "Invalid Syntax" error from the
server.
The error: "Inappropriate Matching" will be displayed if the attribute you are trying to
delete has no equality rule in the schema. I had a problem deleting the attribute
facsimilieTelephoneNumber, and it was because my core.schema file did not have an EQUALITY
definition for that attribute. I copied the telephoneNumber EQUALITY rule and it worked perfectly.
http://www.php.net/manual/function.ldap-mod-del.php