diff --git a/images/openwisp_freeradius/Dockerfile b/images/openwisp_freeradius/Dockerfile index 06e61b84..b59f4cae 100644 --- a/images/openwisp_freeradius/Dockerfile +++ b/images/openwisp_freeradius/Dockerfile @@ -16,6 +16,7 @@ COPY ./common/init_command.sh \ ./common/utils.sh ./ COPY ./openwisp_freeradius/raddb/ /etc/raddb/ RUN chown -R freerad:root /opt/etc/raddb/ && \ + chmod -R go-w /opt/etc/raddb/ && \ chown -R freerad:root /opt/var/log/ ENV TZ=UTC \ diff --git a/images/openwisp_freeradius/raddb/mods-enabled/rest b/images/openwisp_freeradius/raddb/mods-enabled/rest index 5e48037c..e7f05dd8 100644 --- a/images/openwisp_freeradius/raddb/mods-enabled/rest +++ b/images/openwisp_freeradius/raddb/mods-enabled/rest @@ -5,7 +5,7 @@ rest { uri = "${..connect_uri}/authorize/" method = 'post' body = 'json' - data = '{"username": "%{User-Name}", "password": "%{User-Password}"}' + data = '{"username": "%{User-Name}", "password": "%{User-Password}", "called_station_id": "%{Called-Station-ID}", "calling_station_id": "%{Calling-Station-ID}"}' tls = ${..tls} }