Only admin acc work on camera?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
ktara156
Posts: 26
Joined: Mon Sep 25, 2023 10:51 am

Only admin acc work on camera?

Post 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)
User avatar
makers_mark
Posts: 21
Joined: Sun Jul 05, 2020 7:23 pm

Re: Only admin acc work on camera?

Post 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
ktara156
Posts: 26
Joined: Mon Sep 25, 2023 10:51 am

Re: Only admin acc work on camera?

Post 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.
User avatar
makers_mark
Posts: 21
Joined: Sun Jul 05, 2020 7:23 pm

Re: Only admin acc work on camera?

Post 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/.
Post Reply