(RADIATOR) Split the Value of one Attribute in two Attributes

Hugh Irvine hugh at open.com.au
Wed Jul 14 16:57:47 CDT 2004


Hello Julio -

You will need to use a hook for this (probably a PreClientHook).

There are some example hooks in the file "goodies/hooks.txt".

regards

Hugh


On 15 Jul 2004, at 06:34, Julio Cesar Pinto wrote:

> Hi,
>
> I have a problem that I don't know if have solution, some provider have
> the "great" idea to send me one field concatenated into the User-Name
> attribute.
>
> At the moment my User-Name attribute is user at realm
>
> And this guy aspires to send me 
> \4rf5-yyyy-56545-fdfd-6565\username at real
>
> So, I could with regular expression identify the fields into \ ### \ 
> but
> my question is, can I store separately this value in two variable and
> store one value in User-Name attribute, and the other in Class
> attribute, in other words.
>
> Before:
> User-Name = \4rf5-yyyy-56545-fdfd-6565\username at realm
>
> After rewrite Username:
> User-Name = username at realm
> Class = 4rf5-yyyy-56545-fdfd-6565
>
> Could be possible?
>
> Thanks in advance.
>
> JC.
>
> --
> 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.
>
>

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.

--
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