(RADIATOR) get_attr return of multiple values

Mike McCauley mikem at open.com.au
Tue Jan 9 17:09:04 CST 2007


HEllo Robert,

On Wednesday 10 January 2007 02:04, Robert Blayzor wrote:
> When using a get_attr in a sub as:
>
>     my $pt      = $p->get_attr('Cisco-AVPair');
>
>
> If you have an accounting record that returns more than one pair of the
> same attribute, in this case, Cisco-AVPair, are they returned as a
> pointer to an array or are they returned as a concatenated string? (ie:
> "client-mac-address=2e00.5909.8d6f,connect-progress=Call Up,...")

If there are multiple instances of the same attribute, and get_attr is called 
in array context returns an array of the values. Else it returns the first 
one found.

Cheers.

-- 
Mike McCauley                               mikem at open.com.au
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
9 Bulbul Place Currumbin Waters QLD 4223 Australia   http://www.open.com.au
Phone +61 7 5598-7474                       Fax   +61 7 5598-7070

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, 
TTLS, PEAP etc on Unix, Windows, MacOS, NetWare etc.

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