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 [EMAIL PROTECTED] and rewrite
> that as user. Is that so?
>
> Thanks,
> Shon Stephens
> [EMAIL PROTECTED]
>
> - -----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 [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. 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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to