Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3667

freeradius and rml-rest module Configuration errors

$
0
0

I want to use a REST-api to handle authentication (or just fetch users) for my freeradius authentication server.

When I try to start the server I get an error :/etc/freeradius/mods-enabled/rest[17]: Too many closing braces Errors reading or parsing /etc/freeradius/radiusd.conf

My /etc/freeradius/mods-available/rest (linked to mods-enabled) looks like this:

rest {uri = "<myIPNotTheIssueHere"method = "post"

body = jsondata = "{\"username\": \"%{User-Name}\", \"password\": \"%{User-Password}\"}"return_codes {    ok = 200    fail = 401    reject = 403}headers = {    Content-Type = "application/json"}

}

If I try to remove the headers block, then the startup works but my rest api isn't called when I try a connection. With it it just doesn't work...

My freeradius server runs on a docker container (same for my rest-api)

I am able to make calls on my api directly but not from radius.


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>