Patch from bj@zuto.de (Rainer Clasen)
Password of the user.
.IP radius-server
-Hostname or IP address of the radius server.
+Hostname or IP address of the radius server. Optionally, you may specify a
+port by appending :port
.IP nas-port-id
The value of the NAS-Port-Id attribute. Is an integer between 0 and 2^31,
static void usage(void)
{
fprintf(stderr, "Usage: radclient [-c count] [-d raddb] [-f file] [-r retries] [-t timeout]\n"
- "[-i id] [-qvxS] server acct|auth [<secret>]\n");
+ "[-i id] [-qvxS] server[:port] acct|auth [<secret>]\n");
fprintf(stderr, " -c count Send each packet 'count' times.\n");
fprintf(stderr, " -d raddb Set dictionary directory.\n");
bindir="@bindir@"
usage() {
- echo "Usage: radtest user passwd radius-server nas-port-id secret [ppphint] [nasname]" >&2
+ echo "Usage: radtest user passwd radius-server[:port] nas-port-id secret [ppphint] [nasname]" >&2
exit 1
}