Page 1 of 1

When using authentification no images appaear in live view

Posted: Fri Mar 12, 2010 10:43 am
by jurp
When i activate "Authenticate user logins to ZoneMinder" = yes (builtin or external) and visit with the correct user/pass I don't see live view images anymore.

When i shut off this option I see my live stream again.

I see in my apache2 log: Error, unable to authenticate user

In my acess.log no errors,
root@thisrouter:/tmp/motion/cam1# tail -f /var/log/apache2/access.log
212.159.225.71 - - [12/Mar/2010:11:11:19 +0100] "GET /cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=15&rand=1268388678 HTTP/1.1" 200 - "http://thisrouter.doesntexist.org/index ... id=1&mode=" "Cambozola V0.76-0118/Java 1.5.0_07 Sun Microsystems Inc."
212.159.225.71 - - [12/Mar/2010:11:11:19 +0100] "GET /cgi-bin/nph-zms?mode=jpeg&monitor=2&scale=100&maxfps=15&rand=1268388679 HTTP/1.1" 200 - "http://thisrouter.doesntexist.org/index ... id=2&mode=" "Cambozola V0.76-0118/Java 1.5.0_07 Sun Microsystems Inc."
127.0.0.1 - - [12/Mar/2010:11:12:03 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.10 with Suhosin-Patch (internal dummy connection)"


I hope I can grant some rights to a user or a file or modify some settings in my apache2 to solve this problem.

For live example go: http://thisrouter.doesntexist.org/index.php

Problem solved with a .htaccess file

Posted: Mon Mar 15, 2010 11:15 am
by jurp
With the option : Authenticate user logins to ZoneMinder (?) disactivated I can see my images in live feed. To add security I created a .htaccess file in the root of my zoneminder dir.

Posted: Sat Apr 03, 2010 1:02 pm
by mastertheknife
I assume you are using the built in authenication (not apache one) and you probably see this error in the system log.
Mar 26 09:59:32 ZM zms[3742]: ERR [Unable to authenticate user]

zms fails to authenicate you for some reason. Please make sure you dont have any weird characters such as spaces in your username and password.

correct.

Posted: Sat Apr 03, 2010 4:38 pm
by jurp
I can log in with my username and password on the zoneminder security, see the pages, but can't see the images of the live feed if i turn that security on.

I disabled the Zoneminder security and added apache .htaccess security. It works fine for me nowdays.

Posted: Sat Apr 03, 2010 8:02 pm
by whatboy
Use AUTH_RELAY to none... that'll fix it!!! use both ZM and Apache...

Posted: Sun Apr 25, 2010 1:49 am
by netwalker
whatboy wrote:Use AUTH_RELAY to none... that'll fix it!!! use both ZM and Apache...


This doesn't seem too smart(read safe) to me......