September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool ldap_mod_add(resource connectionID, string DN, array entry)
| connectionID | Connection ID |
| DN | Distinguished name of the entry to be modified |
| entry | Array of the attribute information to be added |
Adds a modification to an entry.
Returns:
TRUE on success; FALSE on error
Description:
This function is used when you want to add a simple attribute to the entry that corresponds to the DN specified.
Availability:
UNIX/Linux, Windows
Version:
3.0.8+, 4+
Example:
$attr["mail"][] = "jdoe2@foo.com"; $attr["mail"][] = "jdoe2@foo.com"; $attr["mail"][] = "jdoe3@foo.com"; $return = ldap_mod_add($ldapconn, "uid=jdoe,ou=People,dc=foo,dc=com", $attr); if (TRUE === $result) { echo "The attribute was successfully ... |
Read now
Unlock full access