From d24b11b949f7cd6c78f71aee0c51ea76399bb397 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 22 Apr 2010 11:44:25 +0000 Subject: - Password: PAM driver git-svn-id: https://svn.roundcube.net/trunk@3532 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/password/README | 10 +++++++++- plugins/password/drivers/pam.php | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 plugins/password/drivers/pam.php (limited to 'plugins') diff --git a/plugins/password/README b/plugins/password/README index 1406fb4d5..400a5e7a5 100644 --- a/plugins/password/README +++ b/plugins/password/README @@ -34,7 +34,8 @@ 2.6. cPanel (cpanel) 2.7. XIMSS/Communigate (ximms) 2.8. Virtualmin (virtualmin) - 2.9 hMailServer (hmail) + 2.9. hMailServer (hmail) + 2.10. PAM (pam) 3. Driver API @@ -206,6 +207,13 @@ Requires PHP COM (Windows only). + 2.10. PAM (pam) + --------------- + + This driver is for changing passwords of shell users authenticated with PAM. + Requires PECL's PAM exitension to be installed (http://pecl.php.net/package/PAM). + + 3. Driver API ------------- diff --git a/plugins/password/drivers/pam.php b/plugins/password/drivers/pam.php new file mode 100644 index 000000000..b1b3e9f03 --- /dev/null +++ b/plugins/password/drivers/pam.php @@ -0,0 +1,41 @@ + 600, + 'type' => 'php', + 'file' => __FILE__, + 'message' => "Password plugin: PAM authentication failed for user $user: $error" + ), true, false); + } + } + else { + raise_error(array( + 'code' => 600, + 'type' => 'php', + 'file' => __FILE__, + 'message' => "Password plugin: PECL-PAM module not loaded" + ), true, false); + } + + return PASSWORD_ERROR; +} + +?> -- cgit v1.2.3