fix check ticket for constrained delegation

for the ticket is present in a different format using constrained
delegation the isValid() test does not work properly.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Sebastian Lederer 2022-01-06 09:46:24 +01:00 committed by Arthur Schiwon
commit c337508282
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -59,7 +59,7 @@ class KerberosApacheAuth extends KerberosAuth implements IAuth {
$krb5 = new \KRB5CCache();
$krb5->open($cacheFile);
return (bool)$krb5->isValid();
return count($krb5->getEntries()) > 0;
}
private function init(): void {