I have tried this module in apache 2.2.21 and PHP 5.3 and always the login fail with the message:
You don't have permission to access the desired resource on {mydomainname}.gr, you may try logging in again
with different credentials.
I tried to find the problem and I noticed that in php-login/login.php file, in line 150 (approximately) there is the code bellow:
if (pubtkt_verify($pubkeyfile, $keytype, $ticket) && isset($tkt_graceperiod)
&& is_numeric($tkt_graceperiod) && ($tkt_graceperiod <= time())
&& (time() <= $tkt_validuntil)) {
........
}
First of all the $ticket is array ($ticket = pubtkt_parse($_COOKIE['auth_pubtkt']);) and pubtkt_verify function needs ticket as string. Therefore, I replaced $ticket with $_COOKIE['auth_pubtkt'];
The if check: ( $tkt_graceperiod <= time()) always returns false. This is normal because tkt_graceperiod = 86400 (the default) - 3600 (as far I know from the documents) and therefore is always <= of time() since my login tries are some minutes after cookie creation.
Is that normal?
I tried to get rid of the check ($tkt_graceperiod <= time()) but still there is redirection to login again form.
Is there any windows-apache-user who uses the module successfully?