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. Connects to 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 tiny LDAP server and you want the "List All" button to show EVERYONE, disable first return call and enable the second one. Remember that maxrows setting might limit list of returned entries.
Careful with this -- it could get quite large for big sites.
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 Sat, 07 Oct 2006 16:29:36 +0300 by phpDocumentor 1.3.0RC6