Change password LDAP backend
sqimap_get_user_server() function
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.
password used for $cpw_ldap_admindn
LDAP basedn that is used for binding to LDAP server.
this option must be set to correct value.
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.
password used for $cpw_ldap_binddn
LDAP connection options
crypto that is used to encode new password
If set to empty string, system tries to keep same encoding/hashing algorithm
Port of LDAP server.
Used only when $cpw_ldap_server specifies IP address or DNS name.
Address of LDAP server.
You can use any URL format that is supported by your LDAP extension. Examples:
LDAP attribute that stores username.
username entry should be unique for $cpw_ldap_basedn
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
compares two passwords Code reuse. See phpldapadmin password_compare() function.
Some parts of code was rewritten to backend specifics.
Changes password. Main function attached to hook
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
returns crypto algorithm used in password.
Makes sure that required functions and configuration options are set.
create hashed password
Sanitizes LDAP query strings.
original code - ldapquery plugin. See rfc2254
Search LDAP for user id.
Documentation generated on Mon, 13 Jan 2020 04:22:55 +0100 by phpDocumentor 1.4.3