ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.05k stars 1.22k forks source link

Netcat ONVIF: Adding authentication support #2590

Closed redaco closed 5 years ago

redaco commented 5 years ago

Still for my camera I'm talking about in #2588, I had to add support for ONVIF authentication to Netcat.pm.

I chose to configure the login / password using the Control Address field. Previously, we could store something of the form address:port, now we can use login:password@address:port (classic format). It's questionable, it would probably be cleaner to add 2 fields in the interface. But at this point it was faster for me to implement it as well.

The old address format:port still works, of course.

As for #2588, I sniffed the network using Android TinyCam; I did not read the ONVIF specifications so I can not guarantee that it works with other cameras.

There are also some "essential" dependencies: MIME::Base64, Digest::SHA, DateTime.

Sounds ok? I make a pull request?

connortechnology commented 5 years ago

Sure, make the PR and we will discuss it.

I like having the username/password in the address field. It's how I went with other Control scripts.

redaco commented 5 years ago

It's done, I'm waiting for your remarks.

knight-of-ni commented 5 years ago

Closed via #2598 ...I think. If I am mistaken, please let me know and I will reopen this.