Vendor-Specific attribute with rlm_rest

Alan DeKok aland at deployingradius.com
Thu May 7 23:19:09 CEST 2020


On May 7, 2020, at 4:58 PM, Michael A Carpenter - macarpen at us.ibm.com <macarpen at us.ibm.com> wrote:
> 
> 
> Which version are you running?
> 
> # radiusd -v
> radiusd: FreeRADIUS Version 3.0.20, for host x86_64-alpine-linux-musl, built on Apr 20 2020 at 16:30:06

  Hmm... are you sure you didn't add 'Attr-26' to the dictionaries?  Because from my reading of the rlm_rest code, it calls:

		RDEBUG2("Parsing attribute \"%s\"", name);
		attribute = name;
		..
		da = dict_attrbyname(attribute);
		if (!da) {
			RWDEBUG("Attribute \"%s\" unknown, skipping", attribute);
			curl_free(name);
			continue;
		}

  And the dict_attrbyname() function looks up the *exact* name in the dictionaries.  It doesn't convert "Attr-26" to "Vendor-Specific".

  So using "Attr-26" *should* result in a message of: Attribute "Attr-26" unknown, skipping

  If that happens, it should be relatively easy to update rlm_rest to allow "Attr-26", and parse it's value as a hex string.

  Alan DeKok.




More information about the Freeradius-Users mailing list