Quantcast
Channel: Linux Mail Server Setup and Howto Guide » SquirrelMail
Viewing all articles
Browse latest Browse all 10

SquirrelMail LDAP Change Password Howto

$
0
0

This page will show you how to configure the ldap-chpasswd included in the SquirrelMail Change Password plugin. The ldap-chpasswd can change an LDAP server password. If you have not yet installed this plugin, see the SquirrelMail Change Password Howto.

Install RPMForge1. If you have not yet configured the RPMForge yum repository, see Add RPMForge to your Yum repository.
Yum Install Perl2. Type in yum install perl perl-ldap from a terminal window. This will install the ldap-chpasswd prerequisites.
ldap-chpasswd3. Go to the /usr/share/squirrelmail/plugin/change_passwd directory. Check if ldap-chpasswd runs by typing in ./ldap-chpasswd
ldap-chpasswd
4. Copy the file ldap-chpasswd.cfg.sample and save it as ldap-chpasswd.cfg. Next edit the ldap-chpasswd.cfg file and set the value of the keys below.
$isActiveDirectory = 0;
$hosts = "localhost";
$domain = "acme.local";
$searchBase = "dc=acme,dc=local";
$bindDN = "cn=manager,dc=acme,dc=local";
$bindPW = "secret";
$userAttr = "uid";
Values above are samples only, replace them with values appropriate for your setup.
ldap-chpasswd5. Check your configuration by typing in ./ldap-chpasswd user. Replace user and with a LDAP user name. You should see the distinguished name of the user.
Edit config.php6. Edit the config.php and set $overridePathToChpasswd to ldap-chpasswd. That’s it, you should now be able to change your LDAP password from SquirrelMail.

Viewing all articles
Browse latest Browse all 10

Trending Articles