Hello Bryn -

You will need to use an AcctSQLStatement to do this.

See section 6.26.13 in the Radiator 2.17.1 reference manual.

regards

Hugh


At 11:49 -0800 01/2/12, Bryn Wm. Moslow wrote:
>Is there a way to pass $u (original non-rewritten User-Name attribute) to
>an AcctColumnDef within a realm definition that is using RewriteUsername
>to strip the realm off? I had hoped RewriteUsername was order-sensitive
>but it applies to the entire Realm definition. I played with a few
>AcctColumnDefs using "formatted" but couldn't get it.
>
>i.e.:
>
><Realm ...>
>       <AuthBy SQL>
>               ...
>               ...
>               AuthSelect      # Blank, only doing accounting in SQL
>               AccountingTable ACCOUNTING
>               AcctColumnDef   USERNAME,User-Name,<some way to pass $u
>instead of default>
>               ...
>       </AuthBy>
>       RewriteUsername s/^([^@]+).*/$1/
>       <AuthBy RADIUS>
>               Host ...
>               Secret ...
>       </AuthBy>
></Realm>
>
>Thanks much!
>
>
>===
>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.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

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.

Reply via email to