]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8071 call_time_pass_reference trouble in pam auth
authorskodak <skodak>
Thu, 4 Jan 2007 12:16:31 +0000 (12:16 +0000)
committerskodak <skodak>
Thu, 4 Jan 2007 12:16:31 +0000 (12:16 +0000)
auth/pam/auth.php

index 037ebd6672981d3d2d029998dadfd52290202544..22904271e4a4cd47af8134a1a3df4eef533efcb1 100644 (file)
@@ -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 {