Can not log in web interface

Support and queries relating to all previous versions of ZoneMinder
js
Posts: 1
Joined: Tue Sep 27, 2005 1:04 pm

Can not log in web interface

Post by js »

Hello,

I'm running debian unstable and have isntalled zm as debian package. System looks fine but I can not login into web. When admin/admin entered i see 'Loging in' and after that login screen again. No messages in debug, syslog etc. in MySQL zm.Users are fine and correct password. I'm running last version of ZM. Any ideas?

Thanks

J.Solc
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

when you ran configure, did you see any warning that it could not find libcripto. If so you will need to install openssl and it's depends.

Regards,
Cordel
bschelst
Posts: 10
Joined: Thu Jan 06, 2005 9:22 am

Post by bschelst »

cordel wrote:when you ran configure, did you see any warning that it could not find libcripto. If so you will need to install openssl and it's depends.

Regards,
Cordel
I had the same problem over here with Debian unstable.
It always worked, and suddenly it broke.
Zoneminder wasn't updated, but the latest debian packages were installed.

So it seems that Debian is breaking some stuff in unstable.
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

What versions of PHP and OpenSSL are installed?

What is your setting for ZM_AUTH_METHOD, hashed or plain?
Rick Hewett
merced
Posts: 13
Joined: Thu Oct 13, 2005 3:27 pm

Post by merced »

I too am having the same issues. It shows the "Logging in..." message but goes back to the login screen after that. I'm running ZoneMinder 1.21.3 on Gentoo Linux.

OpenSSL version 0.9.7e
PHP version 4.4.0

Any ideas?

Thanks,
Merced
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I don't have access to a box with this problem so can't pin down why it might be happening. If anyone wants to PM me login details I'd be happy to take a look.

Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

merced wrote: OpenSSL version 0.9.7e
How about openssl-devel (It may be called something else like openssl-dev for that distro)?
Thats what sources use at compile time?

In your source dir there should be a config log that you can go through and check and see if there are any errors. Please report those here.

Regards,
Cordel
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

zoneminder wrote:If anyone wants to PM me login details I'd be happy to take a look.
Cheers. PM sent.
Rick Hewett
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Just as a heads up, I would need ssh access to the server as well as to ZM so I can edit and debug the scripts directly. If anyone can offer this then I should be able to crack this reasonably quickly.

Phil
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

See PM.
Rick Hewett
bschelst
Posts: 10
Joined: Thu Jan 06, 2005 9:22 am

Post by bschelst »

lazyleopard wrote:What versions of PHP and OpenSSL are installed?

What is your setting for ZM_AUTH_METHOD, hashed or plain?
For me it's hashed .

openssl 0.9.8-3
php4 4.4.0-3
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

So far, php 4.4.0 seems to be the common theme.

I've tried both hashed and plain. The conversion from one to the other does seem to require some manual modifying of the Users table.
Rick Hewett
merced
Posts: 13
Joined: Thu Oct 13, 2005 3:27 pm

Post by merced »

I too tried both versions, hashed and plain, and it doesn't seem to help.

I'm also suspecting PHP 4.4.0, but I don't really see anything obvious from the PHP Changelog that points to what may be happening.

Disclaimer: This is the first time I have attempted to install/use ZoneMinder.
boaba
Posts: 19
Joined: Wed May 25, 2005 4:44 pm
Location: sweden
Contact:

Post by boaba »

If you are able to choose httpd-server try plain o'l apache (not apache2) with php4 from debian stable this is not a complete guide but hope you will get some hints

I got it working after alot of trial and error so i'm not sure what did the trick, what i did was (after taking a backup ) changed sources.conf removed all but stable, made a update, removed all apache php related stuff with purge

(do it on your own risk! remember to make a backup, do not blame me if something goes wrong , and so on :) )
apt-get remove --purge apache* php*

then

apt-get install apache libapache-mod-php4 libapache-mod-auth-mysql php4-mysql

from here try to load the zoneminder page, correct any problem that remains.

when all is up and running then "lock" the packages involved so you can start using unstable again, or make apt prefere stable packages.

Good Luck!
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

I've a suspicion there may be something lurking in the process that switches between plain and hashed passwords. I don't remember at which version hashed became an option. I think I had authentication working just fine with hashed passwords before 1.21.3 and php 4.4.0 came along. Unfortunately they both arrived at the same time...
Rick Hewett
Locked