Address book backend for LDAP server
An array with the following elements must be passed to the class constructor (elements marked ? are optional):
host => LDAP server hostname/IP-address base => LDAP server root (base dn). Empty string allowed. ? port => LDAP server TCP port number (default: 389) ? charset => LDAP server charset (default: utf-8) ? name => Name for LDAP server (default "LDAP: hostname") Used to tag the result data ? maxrows => Maximum # of rows in search result ? timeout => Timeout for LDAP operations (in seconds, default: 30) Might not work for all LDAP libraries or servers. ? binddn => LDAP Bind DN. ? bindpw => LDAP Bind Password. ? protocol => LDAP Bind protocol.NOTE. This class should not be used directly. Use the "AddressBook" class instead.
Located in /functions/abook_ldap_server.php (line 39)
addressbook_backend | --abook_ldap_server
Inherited from addressbook_backend
addressbook_backend::$bnum
addressbook_backend::$error
addressbook_backend::$writeable
Constructor (PHP5 style, required in some future version of PHP)
Connects to the database
Constructor (PHP4 style, kept for compatibility reasons)
Connects to the database
Convert from charset used by LDAP server to charset used by translation
Output must be sanitized.
Converts string to the charset used by LDAP server
Sanitizes ldap search strings.
See rfc2254
List all entries present in LDAP server
If you run a small-sized LDAP server and you want the "List all" button (found on the address book search screen that is accessed via the "Addresses" button on the compose screen) to show all addresses in the directory, add the following to config/config_local.php
$ldap_abook_allow_listing = TRUE;
Remember that the "maxrows" configuration setting for the LDAP server backend might limit list of returned entries.
NOTE: You should exercise caution enabling the listing of large or public LDAP address book backends.
Open the LDAP server.
Search the LDAP server
Inherited From addressbook_backend
addressbook_backend::add()
addressbook_backend::list_addr()
addressbook_backend::lookup()
addressbook_backend::modify()
addressbook_backend::remove()
addressbook_backend::search()
addressbook_backend::set_error()
Documentation generated on Mon, 13 Jan 2020 04:24:10 +0100 by phpDocumentor 1.4.3