Hello!
The README in auth_radius points to an old IETF draft that was turned into RFC 4590. This RFC was later replaced with RFC 5090.
Is anyone aware of the changes from draft-01 to RFC 4590 and to RFC 5090 and which level our module complies with?
Should we keep the reference to draft-01 or can we safely assume we’re RFC 5090 compliant?
/O
It would be nice if it was possible to configure the module to use preemptive authentication.
I forked the module to add it myself in a primitive way since I needed it only for Basic Authentication, but it would be better to have it configurable.
In functions.h
// Before:
res |= curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (CURLAUTH_DIGEST|CURLAUTH_BASIC));
// After:
res |= curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
From: https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html
"If more than one bit is set, libcurl will first query the site to see which authentication methods it supports and then pick the best one you allow it to use. For some methods, this will induce an extra network round-trip" <===== this is what I needed to avoid
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/515
Module: kamailio
Branch: master
Commit: fd51e0f469f6a86926505bb33bdb04fc6dcfa855
URL: https://github.com/kamailio/kamailio/commit/fd51e0f469f6a86926505bb33bdb04f…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-30T09:21:14+02:00
http_client Update README with explanation of how an httpcon definition use default settings in the config file
Based on feedback from filipix in issue #541
---
Modified: modules/http_client/README
Modified: modules/http_client/doc/http_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/fd51e0f469f6a86926505bb33bdb04f…
Patch: https://github.com/kamailio/kamailio/commit/fd51e0f469f6a86926505bb33bdb04f…
---
diff --git a/modules/http_client/README b/modules/http_client/README
index 9384f35..48445cb 100644
--- a/modules/http_client/README
+++ b/modules/http_client/README
@@ -442,6 +442,13 @@ modparam("http_client", "authmetod", 3)
call. The address given in the function call will be appended to the
base URL in the connection definition.
+ The HTTP connection will be defined using default values in modparam's
+ above the definition of the httpcon in the configuration file. Also
+ note that connections can be defined in a separate text file if you
+ have many parameters per connection, or want to use a per-connection
+ setting that can be set in that file but not in the httpcon modparam,
+ like authmethod.
+
By default, no connections are defined.
Parameters
diff --git a/modules/http_client/doc/http_client_admin.xml b/modules/http_client/doc/http_client_admin.xml
index 924830f..b39e36e 100644
--- a/modules/http_client/doc/http_client_admin.xml
+++ b/modules/http_client/doc/http_client_admin.xml
@@ -417,6 +417,12 @@ modparam("http_client", "authmetod", 3)
address given in the function call will be appended to the base URL in the connection definition.
</para>
<para>
+ The HTTP connection will be defined using default values in modparam's above the definition
+ of the httpcon in the configuration file. Also note that connections can be defined in a
+ separate text file if you have many parameters per connection, or want to use a per-connection
+ setting that can be set in that file but not in the httpcon modparam, like authmethod.
+ </para>
+ <para>
<emphasis>
By default, no connections are defined.
</emphasis>
Module: kamailio
Branch: master
Commit: 8c037d7c0b10f32de5eacbab46e2f2a38c593aa7
URL: https://github.com/kamailio/kamailio/commit/8c037d7c0b10f32de5eacbab46e2f2a…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2016-03-30T09:17:54+02:00
http_client update TODO based on feedback from filipix in issue #541
---
Modified: modules/http_client/TODO.txt
---
Diff: https://github.com/kamailio/kamailio/commit/8c037d7c0b10f32de5eacbab46e2f2a…
Patch: https://github.com/kamailio/kamailio/commit/8c037d7c0b10f32de5eacbab46e2f2a…
---
diff --git a/modules/http_client/TODO.txt b/modules/http_client/TODO.txt
index 34a368c..da2609d 100644
--- a/modules/http_client/TODO.txt
+++ b/modules/http_client/TODO.txt
@@ -48,3 +48,6 @@ The http_client module - todo
- Option to try connections at module load with CURLOPT_CONNECT_ONLY
just to make sure URLs resolve correctly in DNS and ports are open
+
+- Make it possible to define modparams in any order. For now, httpcon definitions only use default
+ values from modparam's defined on lines above in the config file. (issue #541)