assert(actx->radContext == NULL);
assert(actx->radConn == NULL);
- if (rs_context_create(&actx->radContext, RS_DICT_FILE) != 0) {
+ if (rs_context_create(&actx->radContext) != 0) {
*minor = GSSEAP_RADSEC_CONTEXT_FAILURE;
return GSS_S_FAILURE;
}
goto fail;
}
+ if (rs_context_init_freeradius_dict(actx->radContext, NULL) != 0) {
+ err = rs_err_ctx_pop(actx->radContext);
+ goto fail;
+ }
+
if (rs_conn_create(actx->radContext, &actx->radConn, configStanza) != 0) {
err = rs_err_conn_pop(actx->radConn);
goto fail;
-config gss-eap {
- type = UDP
- timeout = 1
- retries = 10
+dictionary = "/usr/local/etc/raddb/dictionary"
+
+realm gss-eap {
+ type = "UDP"
+ timeout = 5
+ retries = 3
server {
hostname = "localhost"
service = "1812"
* dictionary, otherwise accepting reauthentication tokens fails unless
* the acceptor has already accepted a normal authentication token.
*/
- if (rs_context_create(&radContext, RS_DICT_FILE) != 0) {
+ if (rs_context_create(&radContext) != 0)
+ return false;
+
+ if (rs_context_read_config(radContext, RS_CONFIG_FILE) != 0) {
+ rs_context_destroy(radContext);
+ return false;
+ }
+
+ if (rs_context_init_freeradius_dict(radContext, NULL)) {
+ rs_context_destroy(radContext);
return false;
}
struct rs_error *err);
#define RS_CONFIG_FILE SYSCONFDIR "/radsec.conf"
-#define RS_DICT_FILE SYSCONFDIR "/raddb/dictionary"
#define VENDORPEC_MS 311 /* RFC 2548 */