]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
raduat fixes (#3323)
authorTerry Burton <tez@terryburton.co.uk>
Thu, 19 Mar 2020 17:17:10 +0000 (17:17 +0000)
committerGitHub <noreply@github.com>
Thu, 19 Mar 2020 17:17:10 +0000 (11:17 -0600)
* raduat: Use the given instance of radclient

* raduat: Use the given DICTPATH

scripts/raduat

index 2a9819b8b87018a672ea8e7c09df18e8ca3154de..d194f97670dbc31236c49e23aa93bcc12453a62f 100755 (executable)
@@ -318,12 +318,13 @@ if [ ! -z "$file_args" ]; then
        args+=" -t \"$timeout\""
        args+=" -r \"$retries\""
        args+=" -p \"$parallel\""
+       args+=" -D \"$DICTPATH\""
        args+=" \"$target\""
        args+=" auto"
        args+=" \"$secret\""
 
-       DEBUG "Executing: radclient $args"
-       eval radclient $args; ret=$?
+       DEBUG "Executing: $RADCLIENT $args"
+       eval $RADCLIENT $args; ret=$?
        INFO "(Parallelised tests)"
        INFO ""
 
@@ -347,12 +348,13 @@ if [ ! -z "$serial_file_args" ]; then
        args+=" -t \"$timeout\""
        args+=" -r \"$retries\""
        args+=" -p 1"
+       args+=" -D \"$DICTPATH\""
        args+=" \"$target\""
        args+=" auto"
        args+=" \"$secret\""
 
-       DEBUG "Executing: radclient $args"
-       eval radclient $args; ret=$?
+       DEBUG "Executing: $RADCLIENT $args"
+       eval $RADCLIENT $args; ret=$?
        INFO "(Serialised tests)"
 
        if [ $ret -ne 0 ]; then