|
@@ -82,13 +82,17 @@ RadiusHostDataSource(const DatabaseConnection::ParameterMap& parameters) {
|
|
|
if (rh == NULL) {
|
|
|
isc_throw(isc::Exception, "Failed to initialize Radius client");
|
|
|
}
|
|
|
+ rh = rc_config_init(rh);
|
|
|
+ if (rh == NULL) {
|
|
|
+ isc_throw(isc::Exception, "Failed to initialize Radius client");
|
|
|
+ }
|
|
|
res = rc_add_config(rh, "authserver", "127.0.0.1", NULL, 0);
|
|
|
if (res != 0) {
|
|
|
isc_throw(isc::Exception, "Failed to initialize Radius client");
|
|
|
}
|
|
|
res = rc_add_config(rh, "radius_timeout", "1", NULL, 0);
|
|
|
res = rc_add_config(rh, "radius_retries", "2", NULL, 0);
|
|
|
- res = rc_add_config(rh, "serv-type", "tcp", NULL, 0);
|
|
|
+ res = rc_add_config(rh, "serv-type", "udp", NULL, 0);
|
|
|
}
|
|
|
|
|
|
RadiusHostDataSource::~RadiusHostDataSource() {
|