zms authentication errors if AUTH_RELAY is not none

Forum for questions and support relating to the 1.30.x releases only.
Locked
gert
Posts: 14
Joined: Fri Jul 01, 2016 12:43 am

zms authentication errors if AUTH_RELAY is not none

Post by gert »

I've got a fresh install that is working great (14.04, 1.30.0 debian, whole install is done via Ansible), and recording events fine.

As has happened before (always on 1.29), I found streaming was not working.

Was getting errors in the logs any time I had streaming window open, like this:
zm_auth_err.png
zm_auth_err.png (179.44 KiB) Viewed 1830 times
I did some searching:
- Verified that PATH_ZMS is set to /zm/cgi-bin/nph-zms (This plus the PHP time zone were what fixed it for me in 1.29)
- Time zones are all the same in PHP, Mysql, Apache2, Ubuntu, Zoneminder (I did initally have the wrong timezone on everything but fixed that without issue).
- Past issues (> year ago) allude to timezone affecting the hashing and causing authentication errors.
- Turning off OPT_USE_AUTH makes streaming work fine.
- With OPT_USE_AUTH on, AUTH_RELAY set to hashed (default) doesn't work
- With OPT_USE_AUTH on, AUTH_RELAY set to plain doesn't work
- With OPT_USE_AUTH on, AUTH_RELAY set to none works!
- Maybe related to https://github.com/ZoneMinder/ZoneMinder/issues/1552 and https://github.com/ZoneMinder/ZoneMinder/issues/1543 but I am not using multiple servers.

Any thoughts on what the cause is? Thanks!

Edit: Looks like I should do some more searching, as this is exactly what I'm seeing and 6 years old: viewtopic.php?t=15337#p59513
Locked