note 15173 added to function.ldap-mod-del
| From: | ral at royal dot net | Date: | Thu, 30 Aug 2001 12:09:40 +0000 |
| Subject: | note 15173 added to function.ldap-mod-del | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17384@lists.php.net to get a copy of this message | ||
At least with OpenLDAP 1.2.x
to remove an attribute regardless of it's value you have to assign:
$attrs["AttributeName"]=array();
after ldap_mod_del($ds,$dn,$attrs)
all occurences of AttributeName will be removed
http://www.php.net/manual/en/function.ldap-mod-del.php