Hi, I was using redis module for authentication using this in authorization section of the default site: update control { Cleartext-Password := "%{redis:hget radcheck:%{User-Name} \"Cleartext-Password\"}" } However, this no longer works in FreeRADIUS version 4.0.32319 (git #f7582607) What would be the new mechanism to achieve above? I am trying to move to v4 because the redis sqlippool module. Thanks in advance. Miguel This message is intended only for the use of the individual to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender and deleting the original document.
I can answer myself after some tests: # # ### Receive Access-Request packets # recv Access-Request { update control { &Password.cleartext := %redis(hget, radcheck:%{User-Name}, Cleartext-Password) } From: Miguel Berniz <mberniz@gibfibre.com> Date: Sunday, 21 January 2024 at 03:41 To: freeradius-users@lists.freeradius.org <freeradius-users@lists.freeradius.org> Subject: Redis in Freeradius v4 Hi, I was using redis module for authentication using this in authorization section of the default site: update control { Cleartext-Password := "%{redis:hget radcheck:%{User-Name} \"Cleartext-Password\"}" } However, this no longer works in FreeRADIUS version 4.0.32319 (git #f7582607) What would be the new mechanism to achieve above? I am trying to move to v4 because the redis sqlippool module. Thanks in advance. Miguel This message is intended only for the use of the individual to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender and deleting the original document.
On Jan 20, 2024, at 11:27 PM, Miguel Berniz <mberniz@gibfibre.com> wrote:
I can answer myself after some tests:
To save you some time, I'd suggest checking the online documentation at https://freeradius.org/documentation/freeradius-server/4.0.0/index.html There is also a page which describes in detail how to upgrade from v3 to v4, and what the differences are: https://freeradius.org/documentation/freeradius-server/4.0.0/installation/up... One of the things we've done with v4 is to just document the heck out of everything. Each Unlang command has extensive documentation, as do all modules, virtual servers, etc. It's all available online. Alan DeKok.
Alan, Thank you very much for sharing those resources, it’s much appreciated. It’s an awesome job behind the 4.0 release. PD: Somehow I didn’t get an email with your answer (only the digest later) so I couldn’t reply over your message. Kindest regards, From: Miguel Berniz <mberniz@gibfibre.com> Date: Sunday, 21 January 2024 at 05:27 To: freeradius-users@lists.freeradius.org <freeradius-users@lists.freeradius.org> Subject: Re: Redis in Freeradius v4 I can answer myself after some tests: # # ### Receive Access-Request packets # recv Access-Request { update control { &Password.cleartext := %redis(hget, radcheck:%{User-Name}, Cleartext-Password) } From: Miguel Berniz <mberniz@gibfibre.com> Date: Sunday, 21 January 2024 at 03:41 To: freeradius-users@lists.freeradius.org <freeradius-users@lists.freeradius.org> Subject: Redis in Freeradius v4 Hi, I was using redis module for authentication using this in authorization section of the default site: update control { Cleartext-Password := "%{redis:hget radcheck:%{User-Name} \"Cleartext-Password\"}" } However, this no longer works in FreeRADIUS version 4.0.32319 (git #f7582607) What would be the new mechanism to achieve above? I am trying to move to v4 because the redis sqlippool module. Thanks in advance. Miguel This message is intended only for the use of the individual to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender and deleting the original document.
participants (2)
-
Alan DeKok -
Miguel Berniz