aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/pam.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 21:56:55 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 21:56:55 +0000
commit00f085d2da3f7fc260597e9bd7493a9cb99115fc (patch)
tree233450cc8b9768a2e122b07bb6c083a5053d033a /engine/lib/pam.php
parent1196f73263f4050400604467200a71f2e1f0e3cb (diff)
downloadelgg-00f085d2da3f7fc260597e9bd7493a9cb99115fc.tar.gz
elgg-00f085d2da3f7fc260597e9bd7493a9cb99115fc.tar.bz2
Moved all deprecated core functions into the appropriate deprecation fine
git-svn-id: http://code.elgg.org/elgg/trunk@8262 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/pam.php')
-rw-r--r--engine/lib/pam.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/engine/lib/pam.php b/engine/lib/pam.php
index 308d4d291..e335b7e52 100644
--- a/engine/lib/pam.php
+++ b/engine/lib/pam.php
@@ -72,42 +72,3 @@ function unregister_pam_handler($handler, $policy = "user") {
unset($_PAM_HANDLERS[$policy][$handler]);
}
-function pam_authenticate($credentials = NULL, $policy = "user") {
- elgg_deprecated_notice('pam_authenticate has been deprecated for ElggPAM', 1.8);
- global $_PAM_HANDLERS, $_PAM_HANDLERS_MSG;
-
- $_PAM_HANDLERS_MSG = array();
-
- $authenticated = false;
-
- foreach ($_PAM_HANDLERS[$policy] as $k => $v) {
- $handler = $v->handler;
- $importance = $v->importance;
-
- try {
- // Execute the handler
- if ($handler($credentials)) {
- // Explicitly returned true
- $_PAM_HANDLERS_MSG[$k] = "Authenticated!";
-
- $authenticated = true;
- } else {
- $_PAM_HANDLERS_MSG[$k] = "Not Authenticated.";
-
- // If this is required then abort.
- if ($importance == 'required') {
- return false;
- }
- }
- } catch (Exception $e) {
- $_PAM_HANDLERS_MSG[$k] = "$e";
-
- // If this is required then abort.
- if ($importance == 'required') {
- return false;
- }
- }
- }
-
- return $authenticated;
-}