(RADIATOR) RewriteUsername
Hugh Irvine
hugh at open.com.au
Fri May 11 18:26:47 CDT 2001
Hello Shon -
You would just put the regexp into the relevant field in the database.
RewriteUsername s/^([^@]+).*/$1
will indeed remove the @..... realm suffix from a username.
regards
Hugh
On Saturday 12 May 2001 03:27, Shon Stephens wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> - -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I would like to put my RewriteUsername Rule into the clients table of
> my MySQL database. Should I put the whole statement like this:
>
> RewriteUsername s/^([^@]+).*/$1/
>
> into the database, or just the regex. Also, I am not so good with
> regex. I believe that the above will take user at realm.dom and rewrite
> that as user. Is that so?
>
> Thanks,
> Shon Stephens
> sstephens at corp.goamerica.net
>
> - -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use
> <http://www.pgp.com>
>
> iQA/AwUBOvwg6kwGLkuD4lDdEQIN4gCfQxiNNrjNd1vua1GeCjVumSaY4EMAoIjd
> file://rAvD53MivQfaXnjz0yoYL+
> =HD3n
> - -----END PGP SIGNATURE-----
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBOvwhGUwGLkuD4lDdEQLajQCeKrRBN2r0jXWnHOHlBO7JH7iIEUEAn2Z2
> e5TlRZHZZxKFjMh0JKikdhh4
> =pUSf
> -----END PGP SIGNATURE-----
>
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list