Third Party Contributions > API Based Plugins

[Solved] password plugin + courier-imap: which driver ?

(1/2) > >>

Clèm:
Hello,

I activated the password plugin to allow users to change their password from roundcube. My MDA is courier-imap-ssl but I don't know which driver I should use instead of sql:
$rcmail_config['password_driver'] = 'sql';
?

Thanks

SKaero:
Well how are you storing the user accounts?

Clèm:
The users are linux accounts.

SKaero:
Then I think you'd want to use the pam driver.

Clèm:
I modified the file /etc/roundcube/plugins/password/config.inc.php :

--- Code: ---$rcmail_config['password_driver'] = 'pam';
--- End code ---
According to http://trac.roundcube.net/browser/github/plugins/password/README I installed php5-auth-pam:

--- Code: ---sudo apt-get install php5-auth-pam
--- End code ---
And add the configuration file:

--- Code: ---sudo cp /usr/share/doc/php5-auth-pam/examples/php /etc/pam.d/php
--- End code ---
I added the following lines to the file:

--- Code: ---auth sufficient /lib/security/pam_pwdb.so shadow nodelay
account sufficient /lib/security/pam_pwdb.so
--- End code ---
Next:

--- Code: ---sudo usermod -G shadow www-data
--- End code ---
Finally, I restarted apache:

--- Code: ---sudo service apache2 restart
--- End code ---

But it's still not working:

--- Code: ---[24-May-2012 14:04:25 +0200]: PHP Error: Password plugin: PECL-PAM module not loaded in /var/lib/roundcube/plugins/password/drivers/pam.php on line 33 (POST /roundcube/?_task=settings&_action=plugin.password-save?_task=&_action=)
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version