Try using error_log instead.

This commit is contained in:
Ricky Zhou (周家杰) 2009-08-03 15:30:47 -04:00
parent 6cc0853dd4
commit c42a697d01
2 changed files with 7 additions and 7 deletions

View file

@ -28,7 +28,7 @@ class Auth_FAS extends AuthPlugin {
curl_close ($ch);
if (!isset($response["success"])) {
fwrite(STDERR, "FAS auth failed for $username: incorrect username or password\n");
error_log("FAS auth failed for $username: incorrect username or password", 0);
return false;
}
@ -36,11 +36,11 @@ class Auth_FAS extends AuthPlugin {
for ($i = 0, $cnt = count($groups); $i < $cnt; $i++) {
if ($groups[$i]["name"] == "cla_done") {
fwrite(STDERR, "FAS auth succeeded for $username\n");
error_log("FAS auth succeeded for $username", 0);
return true;
}
}
fwrite(STDERR, "FAS auth failed for $username: insufficient group membership\n");
error_log("FAS auth failed for $username: insufficient group membership", 0);
return false;
}