If statement for two different sql queries

Alan DeKok aland at deployingradius.com
Mon Oct 11 00:11:27 CEST 2021

On Oct 10, 2021, at 5:15 PM, Giedrius Baronas <g.baronas at gmail.com> wrote:
> I need help to split it radreply to two different queries.

  To do... what?

> I have a two different queries:DHCP message and ARP message
> For examples
> ARP query
> (1) Received Access-Request Id 93 from to
> (1)   User-Name = "d4:ca:6d:0a:94:5b"
> (1)   User-Password = "password"

  That's not an ARP query.  I don't know what it is, but it's something magic (and non-standard) created by the NAS.

> DHCP query
> (2) Received Access-Request Id 94 from to
> (2)   User-Name = "d4:ca:6d:0a:94:5b"
> (2)   User-Password = "password"

  That's not DHCP.  That's just a normal RADIUS packet.

> I wrote IF statement in default file authorize section

  To do... what?

> I think I will use multiple instances for different rad_replay queries. Is
> this a bad idea?
> Is it possible to create just two queries.conf files with different queries?

  I have no idea what you're trying to do.  Please explain in more detail.

  Alan DeKok.

More information about the Freeradius-Users mailing list