/plugins/change_password/backend/ldap.phpChange password LDAP backend
string
$cpw_ldap_admindn
(line 104)
BindDN that should be able to change password.
WARNING: sometimes user has enough privileges to change own password. If you leave default value, plugin will try to connect with DN that is detected in $cpw_ldap_username_attr=$username search and current user password will be used for authentication.
string
$cpw_ldap_adminpw
(line 111)
password used for $cpw_ldap_admindn
string
$cpw_ldap_basedn;
(line 60)
LDAP basedn that is used for binding to LDAP server.
this option must be set to correct value.
string
$cpw_ldap_binddn
(line 86)
BindDN that should be able to search LDAP directory and find DN used by user.
Uses anonymous bind if set to empty string. You should not use DN with write access to LDAP directory here. Write access is not required.
string
$cpw_ldap_bindpw
(line 93)
password used for $cpw_ldap_binddn
array
$cpw_ldap_connect_opts
(line 68)
LDAP connection options
string
$cpw_ldap_default_crypto
(line 127)
crypto that is used to encode new password
If set to empty string, system tries to keep same encoding/hashing algorithm
string
$cpw_ldap_filter
(line 135)
Additional LDAP filters
integer
$cpw_ldap_port
(line 52)
Port of LDAP server.
Used only when $cpw_ldap_server specifies IP address or DNS name.
string
$cpw_ldap_server
(line 44)
Address of LDAP server.
You can use any URL format that is supported by your LDAP extension. Examples:
string
$cpw_ldap_userid_attr
(line 119)
LDAP attribute that stores username.
username entry should be unique for $cpw_ldap_basedn
boolean
$cpw_ldap_use_tls
(line 77)
Controls use of starttls on LDAP connection.
Requires PHP 4.2+, PHP LDAP extension with SSL support and PROTOCOL_VERSION => 3 setting in $cpw_ldap_connect_opts
cpw_ldap_compare_pass (line 687)
compares two passwords Code reuse. See phpldapadmin password_compare() function.
Some parts of code was rewritten to backend specifics.
cpw_ldap_dochange (line 201)
Changes password. Main function attached to hook
cpw_ldap_encrypt_pass (line 523)
Encrypts LDAP password
if $cpw_ldap_default_crypto is set to empty string or $same_crypto is set, uses same crypto as in old password. See phpldapadmin password_hash() function
cpw_ldap_get_crypto (line 438)
returns crypto algorithm used in password.
cpw_ldap_init (line 169)
Makes sure that required functions and configuration options are set.
cpw_ldap_password_hash (line 545)
create hashed password
cpw_ldap_specialchars (line 423)
Sanitizes LDAP query strings.
original code - ldapquery plugin. See rfc2254
cpw_ldap_uid_search (line 474)
Search LDAP for user id.
Documentation generated on Sun, 22 Nov 2009 17:36:41 +0200 by phpDocumentor 1.4.3