Title: Re: (RADIATOR) Detecting login with prefixes
Hi Hugh,
 
As you suggested, I tried using a handler to detect logins with specific prefixes, but it doesn't seem to work. My guess here is that there's probably something wrong with my regexp. I'm trying to detect logins such as IPASS/login@domain. Any ideas on what the corerct regexp should be? Man, I definately need to get myself a copy of the Camel book!
 
<Handler User-Name=/^\w+\/\w+\@.*$/>
AuthBy iPassProxy
</Handler>
 
Regards,
Elias
 
----- Original Message -----
 
Sent: Saturday, March 31, 2001 4:11 PM
Subject: Re: (RADIATOR) Detecting login with prefixes
Hello Elias -

At 13:12 +0700 28/3/31, Elias wrote:
Hi,
 
Is there a way to detect login prefixes with radiator? I want to detect logins such as [EMAIL PROTECTED] [prefix/login@domain] and proxy the request to another radius server. Can this be done? Thanks.
 
 


This is very easily done with Handlers and Perl regexp's:

# configure AuthBy RADIUS clause for proxy

<AuthBy RADIUS>
        Identifier ProxyTo....
        .....
</AuthBy>

# special Handler for prefix and proxy
# where "prefix" is the string you want to match

<Handler User-Name = /^prefix...../>
        RewriteUsername ......
        AuthBy ProxyTo....
</Handler>

You will need to consult the Camel book (Perl reference) for the exact syntax of the regexp for what you want to do.

hth

Hugh


       


--
NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
         Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.

Reply via email to