From 00f085d2da3f7fc260597e9bd7493a9cb99115fc Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 15 Feb 2011 21:56:55 +0000 Subject: 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 --- engine/lib/pam.php | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'engine/lib/pam.php') 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; -} -- cgit v1.2.3