frlen / nagnu

Nagios dashboard in ncurses
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

htdigest auth #3

Closed sammcj closed 8 years ago

sammcj commented 8 years ago

Hi,

This doesn't seem to work with htdigest auth?

frlen commented 8 years ago

Hi

I've never tested digest auth but I will set a server up this weekend and try it out.

Curl is configured to use CURLAUTH_ANY which should cover digest authentication according to the documentation: https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html

You can try changing line 112 in nagnu.c to say CURLAUTH_DIGEST instead of CURLAUTH_ANY and see if it makes a difference.

sammcj commented 8 years ago

Yep that did it - thank you, do you think you'd be able to make it a config option?

frlen commented 8 years ago

Alright, excellent. Absolutely, I will make it a config option.

sammcj commented 8 years ago

Legend!

frlen commented 8 years ago

As of commit c7e65fc you can now use digest yes in nagnu.conf for digest authentication.

sammcj commented 8 years ago

Fantastic, thank you so much!