rest module to send simple API call to Infoblox for Mac Auth
dominic.stalder at unibe.ch
dominic.stalder at unibe.ch
Tue Sep 24 17:42:48 UTC 2024
Thanks a lot Matthew!
> If you want both, just add another local attribute to the dictionary (raddb/dictionary) and then add that in the update section of the policy
too.
> Then use that attribute in your rest call.
Exactly what I need; both variables in either way! And that's the (simple) part I was missing out: add attribute to the dictionary.
Best regards
Dominic
________________________________
Von: Freeradius-Users <freeradius-users-bounces+dominic.stalder=unibe.ch at lists.freeradius.org> im Auftrag von Matthew Newton via Freeradius-Users <freeradius-users at lists.freeradius.org>
Gesendet: Dienstag, September 24, 2024 5:29 PM
An: freeradius-users at lists.freeradius.org <freeradius-users at lists.freeradius.org>
Cc: Matthew Newton <mcn at freeradius.org>
Betreff: Re: rest module to send simple API call to Infoblox for Mac Auth
On 24/09/2024 16:22, dominic.stalder at unibe.ch wrote:
> One last / simple step is missing; I need to send the MAC address in the format aa:bb:cc:dd:ee:ff instead of aa-bb-cc-dd-ee-ff. We call the function rewrite_calling_station_id in /etc/freeradius/sites-available, but for the REST API call we need it with colon as delimiter?
>
> Is there an easy way to replace chars in strings in unlang / freeradius?
If you always want colons, edit the rewrite_calling_station_id policy to
use those rather than hyphens. raddb/policy.d/canonicalization
If you want both, just add another local attribute to the dictionary
(raddb/dictionary) and then add that in the update section of the policy
too. Then use that attribute in your rest call.
--
Matthew
-
List info/subscribe/unsubscribe? See https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeradius.org%2Flist%2Fusers.html&data=05%7C02%7Cdominic.stalder%40unibe.ch%7Cca01f8ace7a64e80038108dcdcadb103%7Cd400387a212f43eaac7f77aa12d7977e%7C1%7C0%7C638627885786053952%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=W9dCG1hYGTlx%2Bq6qk8s021%2FpDQFzg0vS2%2FLLo8jpYEw%3D&reserved=0<http://www.freeradius.org/list/users.html>
More information about the Freeradius-Users
mailing list