Hello, is it possible add authorize method to rlm_rediswho module? i don't have good knowledge in C/C++ developpement but i will be a good idea if someone could add for example another command select like insert, trim. Regards, Bassem
On Feb 23, 2018, at 4:40 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
is it possible add authorize method to rlm_rediswho module? i don't have good knowledge in C/C++ developpement but i will be a good idea if someone could add for example another command select like insert, trim.
There's a redis xlat already in v3 and v4 which you can use to execute custom redis commands. if (%{redis:GET foo}" == 'bar') { ... } -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
Hello Arran, thanks a lot for your response but where i must put this code? in rediswho file? under /raddb/mods-enabled or in sites-enabled/default section authorize? Regards, Bassem 2018-02-23 12:23 GMT+01:00 Arran Cudbard-Bell <a.cudbardb@freeradius.org>:
On Feb 23, 2018, at 4:40 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
is it possible add authorize method to rlm_rediswho module? i don't have good knowledge in C/C++ developpement but i will be a good idea if someone could add for example another command select like insert, trim.
There's a redis xlat already in v3 and v4 which you can use to execute custom redis commands.
if (%{redis:GET foo}" == 'bar') { ... }
-Arran
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
On Feb 23, 2018, at 8:12 AM, Bassem Mettichi <mettichi@gmail.com> wrote:
thanks a lot for your response but where i must put this code? in rediswho file? under /raddb/mods-enabled
or in sites-enabled/default section authorize?
At this point, you should know where "if" statements go. If you don't know how to configure the server *at all*, you should stop asking questions, and start reading the documentation and examples. This isn't a complicated problem to solve. If you give up and ask us to solve every problem, then you won't learn anything, and you won't make any progress. Similarly, if you're not going to read the documentation and configuration files, then there's no reason for us to answer your questions. Because most of those questions are *already* answered in the documentation and in the configuration files. Alan DeKok.
Alan i don't need for yourvresponse, you are not obliged to answer my question you are not the concerned person by my question so please stop to give me lessons as you have done this many times, from my last time ididn't asked you any question 2018-02-23 14:21 GMT+01:00 Alan DeKok <aland@deployingradius.com>:
On Feb 23, 2018, at 8:12 AM, Bassem Mettichi <mettichi@gmail.com> wrote:
thanks a lot for your response but where i must put this code? in rediswho file? under /raddb/mods-enabled
or in sites-enabled/default section authorize?
At this point, you should know where "if" statements go. If you don't know how to configure the server *at all*, you should stop asking questions, and start reading the documentation and examples.
This isn't a complicated problem to solve. If you give up and ask us to solve every problem, then you won't learn anything, and you won't make any progress.
Similarly, if you're not going to read the documentation and configuration files, then there's no reason for us to answer your questions. Because most of those questions are *already* answered in the documentation and in the configuration files.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
On Feb 23, 2018, at 8:26 AM, Bassem Mettichi <mettichi@gmail.com> wrote:
Alan i don't need for yourvresponse, you are not obliged to answer my question you are not the concerned person by my question so please stop to give me lessons as you have done this many times, from my last time ididn't asked you any question
You will follow list etiquette, or you will be unsubscribed from the list, and permanently banned. This is your only warning. The short answer is that if you're too lazy to read the documentation, then we're too lazy to help you. Any complaints from you about this are inappropriate, and *will* result in you being kicked off of the list. Follow instructions. Think for yourself. Be willing to do work yourself. Or else. Alan DeKok.
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
Bassem Mettichi