Re: Test auth_query with radauth
"Sergey Poznyakoff" <[email protected]> Tue, 01 Aug 2006 00:53:23 +0300
| Newsgroups | gmane.comp.gnu.radius.general |
|---|---|
| Organization | Farlep-Internet |
| Message-ID | <[email protected]> |
Hi Camilo,
Sorry it took me so long to reply.
> I check once again and again fails.
[...]
> > I check everything but only get radtest shell:
> >
> > [root@localhost]# /usr/local/radius/sbin/radauth -v myusername mypassword
> > radtest>
Here is the patch:
Index: radtest/main.c
--- radtest-orig/main.c 2004-09-10 19:46:36.000000000 +0300
+++ radtest/main.c 2006-08-01 00:52:05.000000000 +0300
@@ -105,7 +105,7 @@ parse_opt(int key, char *arg, struct arg
{
switch (key) {
case 'a':
- assign(optarg);
+ assign(arg);
break;
case 'q':
@@ -113,15 +113,15 @@ parse_opt(int key, char *arg, struct arg
break;
case 'r':
- retry = strtol(optarg, NULL, 0);
+ retry = strtol(arg, NULL, 0);
break;
case 's':
- server = optarg;
+ server = arg;
break;
case 'f':
- filename = optarg;
+ filename = arg;
*(int *)state->input = state->next;
state->next = state->argc;
break;
@@ -135,11 +135,11 @@ parse_opt(int key, char *arg, struct arg
break;
case 't':
- timeout = strtol(optarg, NULL, 0);
+ timeout = strtol(arg, NULL, 0);
break;
case 'x':
- grad_set_debug_levels(optarg);
+ grad_set_debug_levels(arg);
break;
case 'v':
Regards,
Sergey