Dear Alan or Everyone, I had a problem in my checkrad, and some users are in radwho with an "Empty Location", like this example: Login Name What TTY When From Location eudantasal eudantasalves PPP >999 Tue 12:53 172.20.43.2 eudantasal eudantasalves PPP >999 Tue 13:16 172.20.43.2 187.120.XXX.XXX eudantasal eudantasalves PPP >999 Wed 13:30 172.20.43.2 187.120.XXX.XXX So, if I try to radzap "eudantasalves" I got an error: radclient:: failed to get value radclient: Nothing to send. Running "radwho -r -i" for this user, I have: eudantasalves,8180329f,PPP,S15741799,Tue 12:53,172.20.43.2, eudantasalves,81805b36,PPP,S15752644,Tue 13:16,172.20.43.2,187.120.XXX.XXX eudantasalves,81807c32,PPP,S15761221,Wed 13:35,172.20.43.2,187.120.XXX.XXX How can I zap this user? Thanks Aurélio
On Mar 1, 2017, at 11:38 AM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
Dear Alan or Everyone,
I had a problem in my checkrad, and some users are in radwho with an "Empty Location", like this example
...
How can I zap this user?
Delete radutmp, and use SQL for logging. radutmp is historical going back to 1993. It should be replaced with a modern database. Alan DeKok.
Alan, Thanks for you reply! Nowadays I'm working with both, in Freeradius-2-2.9 Removing radutmp, how can I use radwho, radzap, etc? Radwho is only for radutmp right? Look my defaults. To disable radutmp I just need to remove the entry? Any other hint for my defaults file? authorize { preprocess pap chap mschap digest eap { ok = return } sql expiration logintime if(!control:Auth-Type){ update control { Auth-Type := PAP } ok } } authenticate { Auth-Type PAP { pap { fail = 1 } if(fail) { update control { Pool-Name := "mkt_pool" } update reply { Mikrotik-Rate-Limit := "300K/2M 600K/2200K 450K/1500K 10/10" } ok } } Auth-Type CHAP { chap { invalid = 1 } if(invalid) { update control { Pool-Name := "mkt_pool" } update reply { Mikrotik-Rate-Limit := "300K/2M 600K/2200K 450K/1500K 10/10" } ok } } Auth-Type MS-CHAP { mschap { reject = 1 } if(reject) { update control { Pool-Name := "mkt_pool" } update reply { Mikrotik-Rate-Limit := "300K/2M 600K/2200K 450K/1500K 10/10" } ok } } digest unix eap } preacct { preprocess acct_unique accounting { detail unix radutmp sradutmp sqlippool sql if (noop){ ok } #sql_log attr_filter.accounting_response } session { # radutmp sql } post-auth { sqlippool } Em 01/03/2017 15:45, Alan DeKok escreveu:
On Mar 1, 2017, at 11:38 AM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
Dear Alan or Everyone,
I had a problem in my checkrad, and some users are in radwho with an "Empty Location", like this example ... How can I zap this user? Delete radutmp, and use SQL for logging.
radutmp is historical going back to 1993. It should be replaced with a modern database.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Mar 2, 2017, at 6:07 AM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
Removing radutmp, how can I use radwho, radzap, etc? Radwho is only for radutmp right?
Yes. You can still use radzap, but you can also use SQL tools to write directly to the database.
Look my defaults. To disable radutmp I just need to remove the entry? Any other hint for my defaults file?
It's fine. The default config works for most people. Alan DeKok.
participants (2)
-
Alan DeKok -
Aurélio de Souza Ribeiro Neto