Commit 65b6ae1c authored by haemmer's avatar haemmer
Browse files

Fixed #265

parent fa9cc744
......@@ -198,7 +198,7 @@ if (
// Redirect using Kerberos
// Check if $REMOTE_USER has been set by mod_auth_kerb
if (isset($_SERVER['REMOTE_USER'])) {
if ($useKerberos && isset($_SERVER['REMOTE_USER'])) {
$kerberosPrincipal = $_SERVER['REMOTE_USER'];
// Bingo - we have a winner!
$kerberosRealm = substr($user, 1 + strlen($kerberosPrincipal) - strlen(strrchr($kerberosPrincipal, "@")));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment