From 5095b24f664c959e4cbb41cb75699a63d0bf661f Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Wed, 9 Oct 2024 15:52:10 +0700 Subject: [PATCH] Updated FreeRadius Rest (markdown) --- FreeRadius-Rest.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FreeRadius-Rest.md b/FreeRadius-Rest.md index 0231acc..246eeb5 100644 --- a/FreeRadius-Rest.md +++ b/FreeRadius-Rest.md @@ -53,16 +53,16 @@ rest { uri = "${..connect_uri}?action=authenticate" method = 'post' body = 'post' - data = "username=%{urlquote:%{User-Name}}&password=%{urlquote:%{User-Password}}&CHAPchallenge=%{urlquote:%{CHAP-Challenge}}&CHAPassword=%{urlquote:%{CHAP-Password}}&realm=%{urlquote:%{Mikrotik-Realm}}&macAddr=%{urlquote:%{Calling-Station-Id}}&nasip=%{urlquote:%{NAS-IP-Address}}" - tls = ${..tls} + data = "username=%{urlquote:%{User-Name}}&password=%{urlquote:%{User-Password}}&nasid=%{urlquote:%{NAS-Identifier}}&CHAPchallenge=%{urlquote:%{CHAP-Challenge}}&CHAPassword=%{urlquote:%{CHAP-Password}}&realm=%{urlquote:%{Mikrotik-Realm}}&macAddr=%{urlquote:%{Calling-Station-Id}}&nasip=%{urlquote:%{NAS-IP-Address}}" + tls = ${..tls} } authorize { uri = "${..connect_uri}?action=authorize" method = 'post' body = 'post' - data = "username=%{urlquote:%{User-Name}}&password=%{urlquote:%{User-Password}}&CHAPchallenge=%{urlquote:%{CHAP-Challenge}}&CHAPassword=%{urlquote:%{CHAP-Password}}&realm=%{urlquote:%{Mikrotik-Realm}}&macAddr=%{urlquote:%{Calling-Station-Id}}&nasip=%{urlquote:%{NAS-IP-Address}}" - tls = ${..tls} + data = "username=%{urlquote:%{User-Name}}&password=%{urlquote:%{User-Password}}&nasid=%{urlquote:%{NAS-Identifier}}&CHAPchallenge=%{urlquote:%{CHAP-Challenge}}&CHAPassword=%{urlquote:%{CHAP-Password}}&realm=%{urlquote:%{Mikrotik-Realm}}&macAddr=%{urlquote:%{Calling-Station-Id}}&nasip=%{urlquote:%{NAS-IP-Address}}" + tls = ${..tls} } accounting {