From: skodak Date: Thu, 4 Jan 2007 12:16:31 +0000 (+0000) Subject: MDL-8071 call_time_pass_reference trouble in pam auth X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b91c36bf2da3f5231fa0ece951c1a8e01fc1261d;p=moodle.git MDL-8071 call_time_pass_reference trouble in pam auth --- diff --git a/auth/pam/auth.php b/auth/pam/auth.php index 037ebd6672..22904271e4 100644 --- a/auth/pam/auth.php +++ b/auth/pam/auth.php @@ -66,7 +66,10 @@ class auth_plugin_pam { // just for testing and debugging // error_reporting(E_ALL); - if (pam_auth($username, $password, &$errormessage)) { + + // call_time_pass_reference of errormessage is deprecated - throws warnings in multiauth + //if (pam_auth($username, $password, &$errormessage)) { + if (pam_auth($username, $password)) { return true; } else {