This article 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.

Enable SSL in Active Directory1. Make sure your Active Directory is enabled for SSL. This is required in Active Directory to change the user password using LDAPS.
Install RPMForge2. If you have not yet configured the RPMForge yum repository, see Add RPMForge to your Yum repository.
Yum Install Perl3. Type in yum install perl perl-ldap from a terminal window. This will install the ldap-chpasswd prerequisites.
ldap-chpasswd4. 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.
ldap-chpasswd5. If any of the autodetected settings are incorrect, copy the file ldap-chpasswd.cfg.sample and save it as ldap-chpasswd.cfg. Next edit the ldap-chpasswd.cfg file and set the correct values.
ldap-chpasswd6. 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.
Edit config.php7. Edit config.php and set $overridePathToChpasswd to ldap-chpasswd. That’s it, you should now be able to change your Active Directory password from SquirrelMail.

Visit the forum to ask for help or to give a comment.

Posted on 5/19/2008 and last updated on 11/6/2009
Filed under Active Directory , SquirrelMail