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/drivers/pam.php | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 plugins/password/drivers/pam.php (limited to 'plugins/password/drivers') 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