FR3.0.1Problems with raddebug and radmin.
Hello, I'm having some issues with raddebug and radmin not matching conditions. If I run raddebug with no condition, and run a test auth an output is generated; however if I set a condition I get no output. I've not been able to get radmin to write anything to my debug file. I've tried a few different formats for my conditions, all to no avail. -u user@domain.com -u 'user@domain.com' -u "user@domain.com" debug condition '(User-Name == -u user@domain.com)' debug condition '(User-Name == -u 'user@domain.com')' debug condition '(User-Name == -u "user@domain.com")' Only raddebug with no condition produces anything, which at least proves that it is connecting to the radiusd socket. I also note that if I set a condition within radmin, then do 'show debug condition' there is no condition active. Whereas if I repeat this exercise on FR2.2.0 it returns my condition as expected. Can anyone confirm that they are seeing the same behaviour? FR 3.0.0 had an issues where radmin and raddebug would crash radiusd on exit, however that appears to be fixed in FR3.0.1 Many thanks, Jezz. Jezz Palmer Information Services and Systems Swansea University Singleton Park Swansea SA2 8PP
Subject: Re: FR3.0.1Problems with raddebug and radmin.
Hi,
I've tried a few different formats for my conditions, all to no avail.
the man page gives the way:
debug condition ’(User-Name == "bob")’
Ok, that is working within radmin. But I'm still struggling with raddebug. It looks like the condition is having an issue escaping the "'s which have been introduced in FR3* If I start raddebug like as below it works. raddebug -c '(User-Name == \"bob\")' I've added a line to raddebug to echo the OPTARG variable. Here's the output for various attempts... [root@radauth3 freeradius-server-3.0.1]# raddebug -c '(User-Name == \"bob@bobville\")' (User-Name == \"bob@bobville\") ^^The above works. These below all fail... [root@radauth3 freeradius-server-3.0.1]raddebug -c '(User-Name == "bob@bobville")' (User-Name == "bob@bobville") [root@radauth3 freeradius-server-3.0.1]# raddebug -u bob@bobville bob@bobville [root@radauth3 freeradius-server-3.0.1]# raddebug -u "bob@bobville" bob@bobville [root@radauth3 freeradius-server-3.0.1]# raddebug -u \"bob@bobville\" "bob@bobville" However, if I hack the raddebug script and change the line... u) condition="(User-Name == $OPTARG )" to u) condition="(User-Name == \\\"$OPTARG\\\")" raddebug -u bob@bobville works as expected Cheers, Jezz.
Palmer J.D.F. wrote:
But I'm still struggling with raddebug. It looks like the condition is having an issue escaping the "'s which have been introduced in FR3*
This has been fixed in the v3.0.x branch.
However, if I hack the raddebug script and change the line... u) condition="(User-Name == $OPTARG )" to u) condition="(User-Name == \\\"$OPTARG\\\")"
raddebug -u bob@bobville works as expected
A different fix has already been pushed. We're doing some last-minute testing, and hope to release v3.0.2 soon. Alan DeKok.
participants (3)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Palmer J.D.F.