ros-drivers / axis_camera

Contains basic Python drivers for accessing an Axis camera's MJPG stream. Also provides control for PTZ cameras.
BSD 3-Clause "New" or "Revised" License
52 stars 74 forks source link

Authentication with encrypted password #28

Closed negre closed 9 years ago

negre commented 9 years ago

The authentication doesn't work when the axis camera only accept authentication with encrypted password. It would be nice to handle this kind of authentication.

cedricpradalier commented 9 years ago

Yes, it would be nice... Feel free to contribute :)

This has been on my todo list for a while, but no time so far to actually do it.

Cheers.

On Thu, Sep 11, 2014 at 3:38 PM, Amaury Nègre notifications@github.com wrote:

The authentication doesn't work when the axis camera only accept authentication with encrypted password. It would be nice to handle this kind of authentication.

— Reply to this email directly or view it on GitHub https://github.com/clearpathrobotics/axis_camera/issues/28.

Cedric Pradalier

negre commented 9 years ago

OK, I solved the problem on my fork (https://github.com/negre/axis_camera) I add a ros parameter "use_encrypted_password" to enable/disable this authentication When use_encrypted_password is True, "urllib2.HTTPBasicAuthHandler(password_mgr)" is replaced by "urllib2.HTTPDigestAuthHandler(password_mgr)"

I will send a pull request to merge the code.

Cheers

awesomebytes commented 9 years ago

I merged your PR after giving it a short test on a real camera. Closing :)