summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMike Hennessy <henworth@henabytes.com>2012-12-26 11:54:13 -0500
committerMike Hennessy <henworth@henabytes.com>2012-12-26 11:54:13 -0500
commita622b7d580c4642422982f95145a1323abfbed3e (patch)
tree63898a8d1b213447f92a7c09d1895a14c349bf29 /plugins
parent66afd70b756a0637da3537e96f6bf6ce0a2c46e9 (diff)
Update plugins/password/drivers/pam.php
The Ubuntu package php5-auth-pam renames the PECL PAM extension to pam_auth, so this file should check for both.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/password/drivers/pam.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/password/drivers/pam.php b/plugins/password/drivers/pam.php
index ed60bd841..20524d9f1 100644
--- a/plugins/password/drivers/pam.php
+++ b/plugins/password/drivers/pam.php
@@ -13,7 +13,7 @@ class rcube_pam_password
{
$user = $_SESSION['username'];
- if (extension_loaded('pam')) {
+ if (extension_loaded('pam') || extension_loaded('pam_auth')) {
if (pam_auth($user, $currpass, $error, false)) {
if (pam_chpass($user, $currpass, $newpass)) {
return PASSWORD_SUCCESS;