Hello Antonio -

On Fri, 06 Oct 2000, Antonio Coloma wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
>       Hi everybody!
> 
>               I want to put into User DB an special attribute including some kind
> of info.
>               May I have to put it as follows?:
> - ----
>               username        User-Password = "mypass",
>                       My-Attribute = myvalue
> - ----
> 

You will have to change the user definition like this:

# User definition to add a special reply attribute called "My-Attribute"
# (no trailing comma on the first line)

username        User-Password = "mypass"
                 My-Attribute = myvalue

>               And, if I put it into users db, when Radiator auths the user
> "username", if I want to send the value of this attribute to another
> host whith an external program... How can I make this? with an
> external Auth? or with a PostAuthHook?
> 

You would use a PostAuthHook. There are some example hooks in the file
"goodies/hooks.txt" in the Radiator 2.16.3 distribution that you can modify as
required. Don't forget to remove your special attribute from the reply packet
before replying to the NAS, you can do this either in your hook or with a
StripFromReply in the configuration file.

hth

Hugh


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