When using authentification no images appaear in live view

Support and queries relating to all previous versions of ZoneMinder
Locked
jurp
Posts: 4
Joined: Fri Mar 12, 2010 10:13 am

When using authentification no images appaear in live view

Post 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
jurp
Posts: 4
Joined: Fri Mar 12, 2010 10:13 am

Problem solved with a .htaccess file

Post 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.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Post 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.
jurp
Posts: 4
Joined: Fri Mar 12, 2010 10:13 am

correct.

Post 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.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

Use AUTH_RELAY to none... that'll fix it!!! use both ZM and Apache...
netwalker
Posts: 6
Joined: Fri Apr 23, 2010 11:16 pm

Post 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......
Locked