After I authenticate to the apache webserver with my LDAP account the login screen of zoneminder keeps refreshing a ZoneMinder Login /Logging In screen
After some debugging I found out that maybe something went wrong with the restructured/rebuild code between 1.23.3 and v1.24.2. Some code in the skin is executed after some code in the actions, but is needed by the actions.
I copied this code from "skins/classic/skin.php" (lines 39-51) to "includes/actions.php" to line 43 which solved my problem:
Code: Select all
if ( !isset($user) && ZM_OPT_USE_AUTH )
{
if ( ZM_AUTH_TYPE == "remote" && !empty( $_SERVER['REMOTE_USER'] ) )
{
$view = "postlogin";
$action = "login";
$_REQUEST['username'] = $_SERVER['REMOTE_USER'];
}
else
{
$view = "login";
}
}
This part of the code sets the $action variable, which in case of the remote
authentication was needed in the actions.php.
I don't know if it's a configuration problem, an ubuntu problem, or that I just messed something up.
But in case it's a bug in v1.24.2 I hope this post helps someone.
Wessel