Page 1 of 1

Only admin acc work on camera?

Posted: Tue Nov 14, 2023 9:19 pm
by ktara156
Hello,
I just figured that I used development branch of ZM 1.37.** ... (my mistake ;) ). And due to some other errors, I decided to get clean install of stable 1.36. And now, I'm having a basic problem with adding camera...
Could anyone help?

Code: Select all

11/14/23, 10:16:47 PM GMT+1	zmc_m1		1464068	ERR	Failed to prime capture of initial monitor	zmc.cpp	258
11/14/23, 10:16:47 PM GMT+1	zmc_m1		1464068	ERR	Unable to open input rtsp://192.168.0.XXX/Streaming/Channels/101 due to: Server returned 401 Unauthorized (authorization failed)
My source path is:

Code: Select all

rtsp://camera1:PASSWORD@192.168.0.XXX/Streaming/Channels/101
and what is strange, that for camera1 user, it worked before (on v. 1.37.**), but now it's not working... When I change my credencials to camera's ADMIN acc, it working on both ZM versions... Any clues why and how to fix this? (I would like to avoid using camera's ADMIN acc for normal ZM usage)

Re: Only admin acc work on camera?

Posted: Wed Nov 15, 2023 1:35 am
by makers_mark
Any chance that you have special characters (like @?;+:=&$) in your user camera1 password?

An aug 2022 commit on github encoded special characters:
Github Link to Commit

Edit: It looks like is was not pushed to the release-1.36 branch, just master branch

Re: Only admin acc work on camera?

Posted: Thu Nov 16, 2023 10:18 am
by ktara156
makers_mark wrote: Wed Nov 15, 2023 1:35 am Any chance that you have special characters (like @?;+:=&$) in your user camera1 password?

An aug 2022 commit on github encoded special characters:
Github Link to Commit

Edit: It looks like is was not pushed to the release-1.36 branch, just master branch
You're right - I'm using '%' in my pass... But also, I'm using '%' in my admin passwd (and some other special char.) - I' getting warning about that, but it works... Strange.

Re: Only admin acc work on camera?

Posted: Fri Nov 17, 2023 1:23 am
by makers_mark
ktara156 wrote: Thu Nov 16, 2023 10:18 am You're right - I'm using '%' in my pass... But also, I'm using '%' in my admin passwd (and some other special char.) - I' getting warning about that, but it works... Strange.
Hmm, have you tried url encoding your password for the non admin account in the Zoneminder Source field? Change any instance of % to %25 on your "Source" in Zoneminder?
Maybe the two characters in the admin password after the % are hex digits [0-9, a-f] and your camera url decodes that and stores that in the password in the camera?

https://www.urlencoder.org/.