Vendor-Specific attribute with rlm_rest

Matthew Newton mcn at freeradius.org
Fri May 8 01:29:56 CEST 2020


On 07/05/2020 23:21, Alan DeKok wrote:
> On May 7, 2020, at 6:15 PM, Michael A Carpenter - macarpen at us.ibm.com <macarpen at us.ibm.com> wrote:
>> Thanks for taking a look. Would you prefer I created a GitHub issue to track it?
> 
>    Yeah, that's good.  Thanks.
> 
>    The good news is that v4 supports this, at least in "unlang".  I don't think it's supported in rlm_rest, tho.

Completely hideous, but this works:

users:

DEFAULT
         Attr-26 := "%{Tmp-String-1}",
         Fall-Through := Yes

bob     Cleartext-Password := "test"



sites-enabled/default:

authorize {
...
	update request {
         	&Tmp-String-1 := "H=4,I=4"
	}

	files
...

}


$ radtest bob test 127.0.0.1 0 testing123
Sent Access-Request Id 170 from 0.0.0.0:53229 to 127.0.0.1:1812 length 73
	User-Name = "bob"
	User-Password = "test"
...
Received Access-Accept Id 170 from 127.0.0.1:1812 to 127.0.0.1:53229 
length 29
	Attr-26 = 0x483d342c493d34
$
$ echo "483d342c493d34" | xxd -r -ps
H=4,I=4


-- 
Matthew


More information about the Freeradius-Users mailing list