Page 1 of 1

unable to authenticate user

Posted: Fri Jan 12, 2007 5:13 pm
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

Posted: Fri Jan 12, 2007 8:53 pm
by cordel
Yeah, Restart ZM like the little popup box tells you when you change the configuration.

unable to authenticate user

Posted: Sat Jan 13, 2007 9:24 am
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

Posted: Sat Jan 13, 2007 9:31 am
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

Posted: Sat Jan 13, 2007 10:03 am
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.

Posted: Sat Jan 13, 2007 12:08 pm
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

Posted: Mon Jan 15, 2007 2:22 pm
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.

Posted: Mon Oct 01, 2007 4:28 pm
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