help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Illegal chars in a username (Was [Help-gnu-radius] listening but deaf?)


From: Sergey Poznyakoff
Subject: Illegal chars in a username (Was [Help-gnu-radius] listening but deaf?)
Date: Mon, 27 Aug 2001 18:32:15 +0300

Hi,

> I have a user base of around 1500 dial-up accounts. Unfortunately, they
> contain '/' in the username, so once I got the GNU Radius server to run
> with my user list, I found out that the '/' is illegal... So I am stuck.
> 
> Is there any way around this?

Sure, there is. You can change the set of characters allowed in an
username. To do so, you'll need to add desired characters to
valid_chars[] array in radiusd/auth.c:109. (Note, that all
alphanumeric characters are always allowed.) In your case, the
following patch will do the work:

--- radiusd/auth.c      Tue Apr 17 09:43:34 2001
+++ /tmp/radiusd/auth.c Mon Aug 27 18:29:20 2001
@@ -106,7 +106,7 @@ int
 check_user_name(p)
        char *p;
 {
-       static char valid_char[] = "address@hidden&";
+       static char valid_char[] = "address@hidden&/";
        for (; *p && (isalnum(*p) || strchr(valid_char, *p)); p++)
                ;
        return *p;

Regards,
Sergey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]