Roundcube Community Forum

 

Help with password plugin for centos

Started by Golbez, October 13, 2013, 04:16:44 PM

Previous topic - Next topic

Golbez

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?

Golbez

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.