]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Let raddebug also have the -n option 1777/head
authorZenon Mousmoulas <zmousm@noc.grnet.gr>
Mon, 10 Oct 2016 05:20:00 +0000 (08:20 +0300)
committerZenon Mousmoulas <zmousm@noc.grnet.gr>
Mon, 10 Oct 2016 05:20:00 +0000 (08:20 +0300)
man/man8/raddebug.8
scripts/raddebug

index 407a4f2536267bc3d0ee8129e9ef41ea60d83b17..66e80e64fa3e36b2afa4558ab1dff021c13b628e 100644 (file)
@@ -7,6 +7,8 @@ raddebug - Display debugging output from a running server.
 .IR condition ]
 .RB [ \-d
 .IR config_directory ]
+.RB [ \-n
+.IR name ]
 .RB [ \-i
 .IR ipv4-address ]
 .RB [ \-I
@@ -71,6 +73,8 @@ option is equivalent to using:
 .IP "\-d \fIconfig directory\fP"
 The radius configuration directory, usually /etc/raddb.  See the
 \fIradmin\fP manual page for more description of this option.
+.IP "\-n \fImname\fP"
+Read \fIraddb/name.conf\fP instead of \fIraddb/radiusd.conf\fP.
 .IP \-I\ \fIipv6-address\fP
 Show debug output for the client having the given IPv6 address.  This
 option is equivalent to using:
index f10b2913f8f512f187b45e85e5cebc68da213e0e..c1d6a2aaeeab4f9b4b71551663746f429eed4ed3 100755 (executable)
 #
 
 usage() {
-    printf "Usage: %s: [-c condition] [-d directory] [-D dictdir]  [-i client-ip-address] [-I client-ipv6-address] [-f socket_file] [-t timeout] [-u user]\n" $(basename $0) >&2
+    printf "Usage: %s: [-c condition] [-d directory] [-n name] [-D dictdir]  [-i client-ip-address] [-I client-ipv6-address] [-f socket_file] [-t timeout] [-u user]\n" $(basename $0) >&2
     exit 2
 }
 
 extra=
 condition=1
 timeout=60
-while getopts 'd:D:c:i:I:f:t:u:' OPTION
+while getopts 'd:n:D:c:i:I:f:t:u:' OPTION
 do
   case $OPTION in
   c)   condition="$OPTARG"
        ;;
   d)    extra="$extra -d $OPTARG"
        ;;
+  n)    extra="$extra -n $OPTARG"
+       ;;
   D)    extra="$extra -D $OPTARG"
        ;;
   i)    x="(Packet-Src-IP-Address == $OPTARG)"