unable to authenticate user

Support and queries relating to all previous versions of ZoneMinder
Locked
tigmmi
Posts: 5
Joined: Fri Jan 12, 2007 4:49 pm

unable to authenticate user

Post by tigmmi »

I did try to look up into the forum and FAQ but the search result is just the whol threads !

I'm using slackware 10.2 (and tested on slack11.0) with zoneminder v1.22.3, browser firefox 2.0.0.1 and seamonkey 1.0.5 ( newes needed perl modules and ffmpeg).
The problem is that when disablinh authentication everything ( or most ) works, but when the authentication is activated ( after reboot and such) , I found two strange apache errors:

[Fri Jan 12 16:55:35 2007] [error] [client 192.168.0.200] Premature end of script headers: /var/www/cgi-bin/zms
....
Error, unable to authenticate user

Authentication is ok, ( for admin and restrictions for the normal user ).
When I diactivate authentication, and even without rebooting the service, it works again !
The Error, unable to authenticate user accurs when I try the view any Monitors( viem cam or events ).
Any idee ?

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

Post by cordel »

Yeah, Restart ZM like the little popup box tells you when you change the configuration.
tigmmi
Posts: 5
Joined: Fri Jan 12, 2007 4:49 pm

unable to authenticate user

Post by tigmmi »

I did that for many times. I even configure to use authentication, then reload the whole system, but nothing. I still cannot view anything and apache complaines:
[Sat Jan 13 09:21:31 2007] [error] [client 192.168.0.200] Premature end of script headers: /var/www/cgi-bin/zms
Error, unable to authenticate user
tigmmi
Posts: 5
Joined: Fri Jan 12, 2007 4:49 pm

Post by tigmmi »

NOTE: I've sent a replay, but does not shows on that thread !!!!!

I did make that for many times, but nothing changes: apache complains
Error, unable to authenticate user
[Sat Jan 13 09:28:00 2007] [error] [client 192.168.0.200] Premature end of script headers: /var/www/cgi-bin/zms
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You might try using nph-zms instead of zms. On your next restart you might run top just to verify that the services all restart and are not left hanging around.
tigmmi
Posts: 5
Joined: Fri Jan 12, 2007 4:49 pm

Post by tigmmi »

at shudown
['zmfilter.pl ' crashed, signal 14]
['zmupdate.pl -c' crashed, signal 14]

using ps, there is no zm services hunging on.
but thinks are ok at statrup

With nph-zms, it wont works at all even without authentication enabled.

And the problem stil the same, no view with auth enabled and apache error Error, unable to authenticate user
tigmmi
Posts: 5
Joined: Fri Jan 12, 2007 4:49 pm

Post by tigmmi »

Replay to myself.

I still cannot found what's wrong with my installation, but thinks works fine on newly installed slackware 10.2 and slackware 11.0.
It looks like some bad apache module ( like php or pear dependencies ).

many thanks to CORDEL.
maclellan
Posts: 44
Joined: Fri Feb 25, 2005 10:57 pm

Post by maclellan »

Sorry to dig this up again but I have noticed a strange behavior resulting in the same error messages when attempting to get live video. The errors were intermittent and I found that Apache 2.0.58 was the culprit. But I could only see this when accessing ZM from various remote clients and OS's - some worked and some didnt.

The problem is in zms.cpp the procedure call "ValidateAccess()" seems to be unreliable now, where previously it worked all the time. It's probably some interaction with Apache and my OS (gentoo 2006.1) but still haven't found the problem. It's a tough one to troubleshoot. Any ideas?

-scott
Locked