<pre>
uid: testuser
mail: [email protected]
mail: [email protected]
</pre>
How to remove the values of mail so that only the second value for mail exists:
<pre>
$entry["mail"] = "[email protected]";
$result = ldap_mod_del($connID, $dn, $entry);
</pre>
if you want to remove all instances of an attribute.....
==>
<pre>
$entry["mail"][0] = "[email protected]";
$entry["mail"][1] = "[email protected]";
$result = ldap_mod_del($connID, $dn, $entry);
</pre>
are not?