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.