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.

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

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.

5. 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.
6. 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.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 LDAP , SquirrelMail
January 6th, 2009 at 11:16 am
i am using zimbra mail server. for that can u provide me the bindDN and basesearh and also bindPW..
Thanks in advance..
January 6th, 2009 at 1:10 pm
Hi Salih,
Only your LDAP administrator can provide that information.
March 2nd, 2009 at 9:58 am
hai, thanks for this tutorial
i got this error on mu squirrelmail login page “Fatal error: Call to undefined function compatibility_check_sm_version() in /usr/share/squirrelmail/plugins/change_passwd/functions.php on line 55″
can u help me please?
TQ
March 6th, 2009 at 4:32 am
i have solve this problem
i just need to install compatibility plugins n its all work smoothly
tq bro