Hi Brandon -
Why not just this:
RewriteUsername s/\://g
regards
Hugh
> On 24 Apr 2018, at 06:29, Brandon Shiers <[email protected]> wrote:
>
> I'm having an issue and I can't tell quite where it is at. I have usernames
> coming in a mac addresses and per a management requirement they want their
> backend database to have no non-alphanumeric characters in the username
> field.
>
> I have placed the following code in there for the username rewrite, stolen
> from other code sections in the same config that do work:
>
> # Realm for Fast Stuff
> <Handler Client-Identifier=Fast-Stuff>
> RewriteUsername s/\D/g.*/$1/
> SessionDatabase SDB-null
> AuthLog authlogger
> AddToReply Service-Type = Framed-User
> <AuthBy GROUP>
> AuthByPolicy ContinueUntilAccept
> AuthBy Fast-Stuff
> </AuthBy>
> </Handler>
>
> My AuthBy is AuthFreeRADIUSSQL. Maybe that's part of my issue?
>
> Any suggestions would be appreciated. The all I need to do is strip colons
> out of the username and pass it through for authentication against the
> databse which has the username entered with no colons entered in it.
>
> Thanks,
> Brandon
> _______________________________________________
> radiator mailing list
> [email protected]
> http://lists.open.com.au/mailman/listinfo/radiator
--
Hugh Irvine
[email protected]
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER, SIM, etc.
Full source on Unix, Linux, Windows, MacOSX, Solaris, VMS, NetWare etc.
_______________________________________________
radiator mailing list
[email protected]
http://lists.open.com.au/mailman/listinfo/radiator