Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Good evening,
Kept looking around, and now playing with radius.
I've been able to connect with radclient but not radtest yet.
Here is the working command:
echo "User-Name=admin,class=built-in,User-Password=123" | radclient 127.0.0.1 auth testing123
Tried the usual ways (built-in/admin...) but unable to use the class argument under radtest. Did I miss something to make it work?
Thanks in advance.
EDIT: for instance, radtest -t pap built-in/admin 123 localhost 1812 secret
Appears in log as 2024/03/07 17:05:47 handleAccessRequest() username=built-in/admin, org=, password=123 (clearly, org not transmitted)
and result as Received Access-Reject Id 138 from 127.0.0.1 to 127.0.0.1:48544 length 20
(0) -: Expected Access-Accept got Access-Reject
Edit2: from what i read in the code in radius/server.go, the character "/" should work. But it's does not seem to. Can you guess why ?
if strings.Contains(username, "/") {
organization, username = util.GetOwnerAndNameFromId(username)
}
Using the latest casdoor on nextcloud's hub. (not AIO, regular version)

1views
2users
1 minread

send github issue

provide all details and reproduce steps

1 / 2
Mar 2024