Hello Janet -

On Fri, 29 Oct 1999, Janet N del Mundo wrote:
> Hi!
> 
> I'm trying to add an attribute to my accounting table in MS SQL, with a
> PreAuthHook clause, but it's not working right.  Am I using the wrong
> 'Hook' clause?
> 
> When a user logs in with a "+ppp", then his session will be billable
> (Class = "0").  Somehow the attribute Class = "0" is not being added to
> his accounting record.
> 
> PreAuthHook sub { \
>                if (${$_[0]}->get_attr('User-Name') =~ /^+ppp/ ) { \
>                ${$_[1]}->add_attr('Class','"0"'); \
>                } \
>        }

Where are you putting this in your configuration file?

In any case it is probably easier to do this with the standard reply item in
your users file:

DEFAULT Suffix = "+ppp", ....
        ....,\
        Class = "0"

hth

Hugh


--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody

===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to