Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Golbez on October 13, 2013, 04:16:44 PM

Title: Help with password plugin for centos
Post by: Golbez on October 13, 2013, 04:16:44 PM
Hello,

I'm having trouble picking what driver I should use.  I basically have a LAMP CentOS server setup with standard shell user accounts and I would like for them to be able to change their password with the password plugin.  Unfortunately I think the best method would be PAM, but the CentOS repositories do not have the PECL-PAM php module.  Is there an easy fix for this or is there a better driver to use for my setup?
Title: Re: Help with password plugin for centos
Post by: Golbez on October 13, 2013, 10:10:53 PM
Well I just ended up using the chpasswd option.  I had to modify some things in my sudo file to get this to work.

Run the visudo command and comment out the following lines:
#Defaults    requiretty
#Defaults   !visiblepw

And then add this to the bottom:
apache          ALL=NOPASSWD: /usr/sbin/chpasswd

Replace apache with whatever user your apache server runs as, on CentOS for me this would be apache, and this should fix you up.