(RADIATOR) get_attr return of multiple values

Hugh Irvine hugh at open.com.au
Tue Jan 9 18:37:44 CST 2007


Hello Robert -

There are examples of both in "goodies/hooks.txt".

regards

Hugh



On 10 Jan 2007, at 10:09, Mike McCauley wrote:

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



NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
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.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
-
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