how to add base64 password?

Forum for questions and support relating to the 1.30.x releases only.
Locked
nixnooi
Posts: 31
Joined: Mon Sep 04, 2006 1:02 am
Location: Pennsylvania, USA

how to add base64 password?

Post by nixnooi »

from the official docs

https://zoneminder.readthedocs.io/en/la ... g-monitors

The camera we are using as an example here is a Foscam 9831W which is a 1280x960 RTSP camera, and the URL to access it’s feed is username:password@IPADDRESS:PORT/videoMain

I am currently trying to add a Tp-Link NC450. According to viewtopic.php?t=25757

Password: !! Your passwords base64 encoded version !!
This is what I am trying user=test password=test (dGVzdA==)
not-accep-S_20191018_212356.png
not-accep-S_20191018_212356.png (25.51 KiB) Viewed 3761 times
But when I try and save that I get an error.
auth-err-decode-S_20191018_212314.png
auth-err-decode-S_20191018_212314.png (25.36 KiB) Viewed 3761 times
If I leave it off - blue screen and log shows authentication error
auth-err-S_20191018_211627.png
auth-err-S_20191018_211627.png (31.38 KiB) Viewed 3761 times
I can use this directly in a browser
http://192.168.1.133:8080/

it prompts me for a user:pass - and then works

This is the first time I am trying base64 password in the URL like this. Searching the wiki was not much help.

Anyone please ....
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: how to add base64 password?

Post by bbunge »

Try source type ffmpeg. Also verify the URL stream in VLC and when it works in VLC check the actual resolution. Be advised that hi res cams can run the server out of memory in tmpfs.
nixnooi
Posts: 31
Joined: Mon Sep 04, 2006 1:02 am
Location: Pennsylvania, USA

Re: how to add base64 password?

Post by nixnooi »

I have never used ffmpeg. Where does the user/pass go?

I am afraid I am going to run out of memory, but that is a different issue. :) Not there yet .. at least I don;t think so .. based on the log errors.
nixnooi
Posts: 31
Joined: Mon Sep 04, 2006 1:02 am
Location: Pennsylvania, USA

Re: how to add base64 password?

Post by nixnooi »

Oh wait - I found

Source Type: cURL (HTTP(S) only)

learnt something new!
nixnooi
Posts: 31
Joined: Mon Sep 04, 2006 1:02 am
Location: Pennsylvania, USA

Re: how to add base64 password?

Post by nixnooi »

Thanks bbunge you nudged me in the right direction.

It works now using the admin user and base64 password for admin. The test user does not work, but that's ok - I just made it because I was having problems.
Locked