I am using the PHP LDAP library to access Microsofts Active Directory and I am looking for a clean way to empty single value attributes.
I am using ldap_modify (http://php.net/manual/de/function.ldap-modify.php) to update active directory contacts. Unfortunately, I receive a syntax error from the ldap library when I try to write an empty string (''). This happens when I try to override a single value contacts attribute while I do not have a new one.
Is there a clean way to delete ldap attributes with single values? My only solution right now is to write ' ' (single space), but I feel like this could cause other problems.
Cleaning up multi value attributes is simple by the way. LDAP does allow inserting empty arrays (array()).
Thanks a lot for your support.