Updated FreeRadius Rest (markdown)
parent
c26219e1b1
commit
5095b24f66
@ -53,16 +53,16 @@ rest {
|
|||||||
uri = "${..connect_uri}?action=authenticate"
|
uri = "${..connect_uri}?action=authenticate"
|
||||||
method = 'post'
|
method = 'post'
|
||||||
body = '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}}"
|
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}
|
tls = ${..tls}
|
||||||
}
|
}
|
||||||
|
|
||||||
authorize {
|
authorize {
|
||||||
uri = "${..connect_uri}?action=authorize"
|
uri = "${..connect_uri}?action=authorize"
|
||||||
method = 'post'
|
method = 'post'
|
||||||
body = '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}}"
|
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}
|
tls = ${..tls}
|
||||||
}
|
}
|
||||||
|
|
||||||
accounting {
|
accounting {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user