September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool ldap_delete(resource connectionID, string DN)
Removes an entry.
Returns:
TRUE on success; FALSE on error
Description:
Deletes an entry in the LDAP directory. The distinguished name (DN) needs to be known or obtained prior to using the function.
Availability:
UNIX/Linux, Windows
Version:
3+, 4+
Example:
$ldapconn = ldap_connect($host);
$bind = ldap_bind($ldapconn, "cn=Sysadmin,dc=foo,dc=com", "secret");
$dn = "uid=jdoe,ou=People,dc=foo,dc=com";
if (!(ldap_delete($ldapconn, "$dn"))) {
echo "unable to delete $dn\n";
}
|
Read now
Unlock full access