Hi Janet,

----------------------------------------------------------------------------
---------------
Mike McCauley                                 [EMAIL PROTECTED]
Open System Consultants                 +61 3 9598 0985

Mike is travelling right now, and there may be delays
in our correspondence.
-----Original Message-----
From: Janet N del Mundo <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, October 29, 1999 12:40 PM
Subject: (RADIATOR) PreAuthHook - Adding Attribute?


>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/ ) { \

Since '+' is a special character in perl regexps, you probably want:
               if (${$_[0]}->get_attr('User-Name') =~ /^\+ppp/ ) { \



>               ${$_[1]}->add_attr('Class','"0"'); \
>               } \
>       }
>
>TIA,
>Janet
>
>
>
>===
>Archive at http://www.thesite.com.au/~radiator/
>To unsubscribe, email '[EMAIL PROTECTED]' with
>'unsubscribe radiator' in the body of the message.
>


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