Cameras arent visibles after I activate authentication

Forum for questions and support relating to the 1.29.x releases only.
Locked
evilside
Posts: 5
Joined: Fri Apr 01, 2016 7:50 pm

Cameras arent visibles after I activate authentication

Post by evilside »

Hi

When I activate the Zoneminder Web console authentication, the cameras arent visibles.

I have restarted service after change but not working.

If I disable the authentication option, the cameras are inmediatly visibles.

I have Foscam IP cameras and I have writed the user and password camera in Remote Host Path, maybe this is the problem?
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Cameras arent visibles after I activate authentication

Post by bbunge »

Did you give your user permission to view cameras?
evilside
Posts: 5
Joined: Fri Apr 01, 2016 7:50 pm

Re: Cameras arent visibles after I activate authentication

Post by evilside »

Hi

Yes, the beginning, the cameras aren't selected in the list of restricted cameras, but now are marked, and occur same problem, the cameras are not visible.

This is admin user:
Image
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Cameras arent visibles after I activate authentication

Post by PacoLM »

Stupid question...Have you logged out from the session and logged in again after the changes?

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
evilside
Posts: 5
Joined: Fri Apr 01, 2016 7:50 pm

Re: Cameras arent visibles after I activate authentication

Post by evilside »

...yes and restarted the zoneminder service.
rockedge
Posts: 1197
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Cameras arent visibles after I activate authentication

Post by rockedge »

Look in Options>Systems
AUTH_RELAY Method used to relay authentication information (?) hashed plain none

and select "none"
save restart zoneminder and see if that works.
evilside
Posts: 5
Joined: Fri Apr 01, 2016 7:50 pm

Re: Cameras arent visibles after I activate authentication

Post by evilside »

I have changed AUTH_RELAY from 'hashed' to 'plain' and now is working. Is secure use this method for Internet?
rockedge
Posts: 1197
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Cameras arent visibles after I activate authentication

Post by rockedge »

No it is not secure. Only the user name is passed in the URL for authentication. Have you changed AUTH_HASH_SECRET ? I have also had this occur. I then re-enabled the Hash auth and it worked. I can not say for sure what changed to make it work but now it does.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Cameras arent visibles after I activate authentication

Post by knight-of-ni »

I have seen this occur with AUTH_HASH_IPS enabled.
For some reason, ZoneMinder could not determine the client's ip so it was null. I don't remember the circumstances which caused this.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
evilside
Posts: 5
Joined: Fri Apr 01, 2016 7:50 pm

Re: Cameras arent visibles after I activate authentication

Post by evilside »

I changed AUTH_HASH_SECRET and disabled the AUTH_HASH_IPS option but not working the hashed auth relay, only with the PLAIN option is working.
jcconnell
Posts: 10
Joined: Thu Sep 08, 2016 9:13 pm

Re: Cameras arent visibles after I activate authentication

Post by jcconnell »

Having the same issue here.

After enabling builtin auth, I cannot view cameras if using hashed auth_relay. Plain and None work.

I have tried various configurations of logging out, restarting ZM, disabling Auth_hash_ips, etc. No luck. I'm running 14.04 and ZM 1.30.
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: Cameras arent visibles after I activate authentication

Post by pat2 »

I found a solution on 1.30.4, probably 2 and 3 are the more important:

1. cancel cookies and access grants in firefox for zm site,
2. run sudo dpkg-reconfigure tzdata and set your your time zone, e.g. America and then New_York
3, nano /etc/php/7.0/apache2/php.ini and set date.timezone = America/New_York


2 and 3 to be set to same timezone.
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
Locked