Hello Rafael -
You don't neccessarily need to use Handlers. You can also use cascaded AuthBy's
to do this. You can use an AuthBy FILE to check the prefixes and call the
corresponding AuthBy with the Auth-Type construct. Here's how to do it:
# configure AuthBy for local authentication (SQL, FILE, or whatever)
<AuthBy SQL>
Identifier CheckLocal
....
</AuthBy>
# configure AuthBy RADIUS for iPASS
<AuthBy RADIUS>
Identifier CheckiPASS
.....
</AuthBy>
# configure AuthBy RADIUS for GRIC
<AuthBy RADIUS>
Identifier CheckGRIC
.....
</AuthBy>
# configure AuthBy FILE with DEFAULT's and Auth-Type's
<AuthBy FILE>
Identifier CheckPrefixes
Filename %D/prefix.users
</AuthBy>
# configure Realms
<Realm .....>
AuthBy CheckPrefixes
</Realm>
Then in your file %D/prefix.users you would have this:
# file %D/prefix.users
DEFAULT Prefix = ....., Auth-Type = CheckiPASS
DEFAULT Prefix = ......, Auth-Type = CheckGRIC
......
You haven't shown enough detail about your existing Realms, so if you need any
additional help please let me know.
regards
Hugh
On Thu, 19 Oct 2000, Rafael Ortega wrote:
> Hello, everyone
>
> I'm not very proficient in Perl, but need has made me look into regular
> expressions to solve a configuration problem I have with Radiator (currently
> using 2.15, but about to upgrade to 2.16, as soon as the new servers
> arrive).
>
> We recently merged with another ISP and inherited their database and
> domains. We also support GRIC and IPASS romaing services.
>
> My problem is, for roaming services, we are going to use prefixes and that
> means handlers (if I'm not mistaken).
>
> Currently, I use realms for our local domains, defining <Realm> for our
> domain with the most users. <Realm default> I use for Ipass. No provisions
> have been made for Gric, yet.
>
> I came up with the following handler definitions to replace my realms:
>
> <Handler User-Name=/domain.com$/i> would replace <Realm domain.com>
>
> <Handler User-Name=/^IPASS\//i> would do for the prefixes.
>
>
> What I need is a way to define a handler that would take the place of the
> domain-less Realm without using the <Handler default> (since I'd probably
> use it with gric).
>
> Thanks for your help.
>
>
> ------------------------------------
> Rafael Ortega
> PSINetworks Panama
> [EMAIL PROTECTED]
> +507 206-3078
>
>
>
> ===
> Archive at http://www.starport.net/~radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
--
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.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.