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

1. If you have not yet configured the RPMForge yum repository, see Add RPMForge to your Yum repository.
2. Type in yum install perl perl-ldap from a terminal window. This will install the ldap-chpasswd prerequisites.
3. Go to the /usr/share/squirrelmail/plugin/change_passwd directory. Check if ldap-chpasswd runs by typing in ./ldap-chpasswd. You should see your autodetected settings.
4. Export a base-64 encoded certificate from your SSL enabled Active Directory server and place the file into this directory.
5. 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 $certificate to the name of the certificate file. If any of the autodetected settings are incorrect, you can specify the correct values here.
6. Check your configuration by typing in ./ldap-chpasswd user password. Replace user and password with a valid Active Directory user name and password. You should see the distinguished name of the user.
7. Edit the config.php and set $overridePathToChpasswd to ldap-chpasswd. That’s it, you should now be able to change your Active Directory password from SquirrelMail.***
Posted on 5/19/2008 and last updated on 5/19/2008
Filed under Active Directory , SquirrelMail
Share This