Hello Matt -
On Wed, 05 Jan 2000, Matt Chambers wrote:
> Hello, I'm trying to setup a seperate realm with radiator for authenticating
> MegaPOP users. My config looks something like this.
>
> <Realm DEFAULT>
> <Authby SQL>
> source: dbi:mysql:radius1
> username: radius
> dbauth: radius
> stuff
> </Authby SQL>
> </Realm>
>
> <Realm test>
> <Authby SQL>
> source dbi:mysql:radius2
> username: radius
> dbauth: radius
> stuff
> </Authby SQL>
> </Realm>
>
> Can I do that? The if I do a radpwtest with username@test, the request
> gets rejected.
>
Yes you can do this, but the username passed to the AuthBy SQL in the Realm
test clause will be "username@test". If you only want the username part you
will have to use a RewriteUsername to strip the realm like this:
<Realm test>
RewriteUsername s/^([^@]+).*/$1/
<AuthBy SQL>
....
</AuthBy>
</Realm>
BTW - as a matter of style, you might want to put your Realm DEFAULT after the
other Realms in the configuration file, just to help in understanding.
hth
Hugh
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.