LDAP client class
Implementation of an LDAP client, which is able to search for entries, add new entries and modify or delete existing entries.
Example:
Located in /core/net/ldap/LdapClient.class.php (line 83)
PHP2Go | --LdapClient
Base DN used on searches
DN used to bind
Password used to bind
Connection handle
LDAP host
LDAP port
LDAP protocol version
Enable or disable TLS (Transport Layer Security)
Class constructor
Allowed config arguments:
Class destructor
Closes the LDAP connection if opened.
Adds a new entry on the LDAP server
Example:
Closes the LDAP connection
Opens the connection with the LDAP server
Deletes an entry from the LDAP server
Searches for a given DN in the LDAP directory
Returns FALSE in case of error or entry not found. When DN is incomplete, base DN will be added.
Examples:
Get connection handle
Reads an option from the LDAP server
Checks if connection is active
Performs a search on the LDAP server
Allowed keys for $settings:
Set base DN used to perform searches
Set bind parameters
When using LDAP, $bindDN is a distinguished name. When using AD, $bindDN is an email address.
Examples:
Changes an option on the LDAP server
Set LDAP protocol version
Set LDAP host and port
Updates a given LDAP entry
Collects all changes stored in the class, performing attribute inserts, updates and removes sequentially.
Example:
Wrapper over the function ldap_explode_dn()
Ensures that a DN is properly escaped and encoded.
Retrieves an error message from the server
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:27:06 -0300 by phpDocumentor 1.3.2