remote authentication results in a loop on the login screen

Forum for questions and support relating to the 1.24.x releases only.
Locked
techtribe
Posts: 2
Joined: Fri Nov 26, 2010 1:28 pm
Location: NL

remote authentication results in a loop on the login screen

Post by techtribe »

Hello, I had zoneminder 1.23.3 working with ubuntu and remote authentication but another installation on ubuntu 10.10 with zoneminder v1.24.2 (package install) resulted in an endless loop on the login screen.

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
Locked