Hello, Some recent commit added `-S` option to radmin, to pass secret. I don't understand what secret it is asking for, from localhost that should be secret for localhost client right? Whatever I try to enter if it asks for secret, or with `-S` option it just hangs. I hacked/commented that part of code so I can use radmin as before (also on 4.0.x), but now every command executed with `radmin -e` returns always 1, even if succeeded, i.e. `radmin -f /run/radiusd/control/radiusd.sock -e 'stats network 0 self'` shows stats but returns 1 (btw. nice that now radmin will look for socket file from config, but without `-f` it prints some debug output). Also, I have problems with `radmin -e 'set debug level 2'` for example, it does not do anything. Is radmin still not in usable state? I use it for stats currently but it would be nice to have some easy way to switch debug levels on fly. Thanks, Milan
On Jul 12, 2019, at 5:06 PM, Milan Nikolic <gen2brain@gmail.com> wrote:
Some recent commit added `-S` option to radmin, to pass secret. I don't understand what secret it is asking for, from localhost that should be secret for localhost client right?
No. radmin doesn't use RADIUS to talk to the server. It uses it's own custom protocol.
Whatever I try to enter if it asks for secret, or with `-S` option it just hangs.
OK, that should be fixed. But it should work *without* the `-S`. Hmm... I'll push a fix.
I hacked/commented that part of code so I can use radmin as before (also on 4.0.x), but now every command executed with `radmin -e` returns always 1, even if succeeded, i.e. `radmin -f /run/radiusd/control/radiusd.sock -e 'stats network 0 self'` shows stats but returns 1
Hmm. I see that here, too. Not sure why, because the main() function i s trying to return 0.
(btw. nice that now radmin will look for socket file from config, but without `-f` it prints some debug output).
I'll see if I can clean that up.
Also, I have problems with `radmin -e 'set debug level 2'` for example, it does not do anything.
That should also work. The issue right now may be that it does set the debug level, but doesn't change where the logs go?
Is radmin still not in usable state? I use it for stats currently but it would be nice to have some easy way to switch debug levels on fly.
It should mostly work, but there aren't (yet) detailed tests for it. So functionality may regress as we change the code. Alan DeKok.
On Jul 12, 2019, at 5:06 PM, Milan Nikolic <gen2brain@gmail.com> wrote:,
Some recent commit added `-S` option to radmin, to pass secret. I don't understand what secret it is asking for, from localhost that should be secret for localhost client right? Whatever I try to enter if it asks for secret, or with `-S` option it just hangs.
The server doesn't currently check for the secret. The goal is to (eventually) allow name / password authentication to radmin, with permissions base on users. That isn't done right now.
Also, I have problems with `radmin -e 'set debug level 2'` for example, it does not do anything.
I've pushed a fix. Alan DeKok.
Great, thanks, just tested and `radmin -e 'set debug level 3'` now works properly. It still returns always `1`, even on success, I hacked this for now by changing this line https://github.com/FreeRADIUS/freeradius-server/blob/master/src/modules/prot... to `goto exit`. So far it works, returns 0 on success, and if I type some wrong command it returns 1, but probably is not the right fix. Thanks, Milan On Sat, Jul 13, 2019 at 9:11 AM Alan DeKok <aland@deployingradius.com> wrote:
On Jul 12, 2019, at 5:06 PM, Milan Nikolic <gen2brain@gmail.com> wrote:,
Some recent commit added `-S` option to radmin, to pass secret. I don't understand what secret it is asking for, from localhost that should be secret for localhost client right? Whatever I try to enter if it asks for secret, or with `-S` option it just hangs.
The server doesn't currently check for the secret.
The goal is to (eventually) allow name / password authentication to radmin, with permissions base on users. That isn't done right now.
Also, I have problems with `radmin -e 'set debug level 2'` for example, it does not do anything.
I've pushed a fix.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jul 13, 2019, at 1:29 PM, Milan Nikolic <gen2brain@gmail.com> wrote:
Great, thanks, just tested and `radmin -e 'set debug level 3'` now works properly.
It still returns always `1`, even on success, I hacked this for now by changing this line https://github.com/FreeRADIUS/freeradius-server/blob/master/src/modules/prot... to `goto exit`. So far it works, returns 0 on success, and if I type some wrong command it returns 1, but probably is not the right fix.
It's fine. I'll push a fix. Alan DeKok.
participants (2)
-
Alan DeKok -
Milan Nikolic