Can not log in web interface

Support and queries relating to all previous versions of ZoneMinder
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

merced does that topic refer to your 205 problem?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
sekuz
Posts: 2
Joined: Thu Oct 20, 2005 3:25 pm
Location: Russia, Zlatoust

Post by sekuz »

cordel,
I use XAMPP for Linux 1.4.16
All config this XAMPP is default

I'm sorry. My English language is bad.
:(
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Last night I decided to bite the bullet and allow Gentoo to upgrade mysql from 4.0.25 to 4.1.14. There were a couple of pages to be read carefully (as announced in http://forums.gentoo.org/viewtopic-t-392469.html ), but most of the upgrade went smoothly. However, Gentoo correctly decided that zoneminder needed re-compiling, and the fixes Phil had made vanished. Oops!

I got it working again after a while. This is the patch I've now got applied to zm.php:

Code: Select all

--- web/zm.php.orig     2005-05-17 22:42:13.000000000 +0100
+++ web/zm.php  2005-10-27 07:58:42.000000000 +0100
@@ -20,6 +20,7 @@
 
 error_reporting (E_ALL ^ E_NOTICE);
 import_request_variables( "CGP" );
+session_start();
 
 $debug = false;
 if ( $debug )
@@ -146,7 +147,7 @@
        }
 }
 
-session_start();
+//session_start();
 
 if ( !$_SESSION['format'] )
 {
@@ -156,6 +157,7 @@
        if ( $cookies )
        {
                setcookie( "format", $format );
+               //setcookie( "cookies", $cookies );
        }
 }
 
including evidence of things I tried and then left out.

I needed to clear out my cookie file, obviously. I also found that I had to juggle the authorisation options via SQL, making use of

Code: Select all

update Config set Value=0 where Name like "ZM_OPT_USE_AUTH";
to allow me to flip between "hashed" and "plain" in the web interface without needing a password, and

Code: Select all

update Users set Password = password('xxxxx') where Username = 'admin';
to reset (and, presumably, re-hash) the password. Once I could log in with that ID I was able to reset the passwords for the other IDs via the web interface, and then they could login too.
Rick Hewett
merced
Posts: 13
Joined: Thu Oct 13, 2005 3:27 pm

Post by merced »

jameswilson wrote:merced does that topic refer to your 205 problem?
That topic is what I was trying to point you to for my latest problem.
donatmote
Posts: 31
Joined: Mon Jan 24, 2005 6:06 pm
Location: Sarasota, FL US

Post by donatmote »

FYI,

I'm running Debian/Testing amd64. Recently php4.4 moved from unstable to testing and I
upgraded. I lost the ability to login. I upgraded zm to 1.21.4, but it didn't help. I noticed that the "official fix" was in 1.21.4. Merced's fix (moving session_start) got my login back.

Also I had to include my url hack in zm_funcs.php -- Without it I didn't get images in the monitor window. I just copied zmconfig.txt to the new source directory, so iif zmconfig.pl has been changed to accept a trailing '/' I lissed it.

As well, to get 1.21.4 to build,I had to add the following to the LIBS line in the Makefiles:

-ldts -ldc1394_control -lvorbisfile -logg -lgsm -ltheora -lvorbisenc

Thanks.

Don
Don Hayward
Mote Marine Laboratory
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks Don for passing this on. I assume you are using Theora streaming somewhere?

Am I correct in understanding that you are still having login problems even after the upgrade? If so then perhaps there is more than one issue as the php 4.4 systems I looked at were all fixed by the 1.21.4 change.

Can you remind me what the url hack was?

Phil
bsteinebach
Posts: 2
Joined: Wed Feb 23, 2005 5:16 pm

Fixed it for Gentoo

Post by bsteinebach »

I have two installations of Gentoo, one with the login problem.
So i looked at the use flags and a new emerge of PHP5 solved my problem.

I emerged PHP5 with USE="curl gmp xpm" and that did the trick for me.
But i don't know exactly which of the three flags did the trick...

Hope this would help.
Locked