From: Eric S. J. <es...@ha...> - 2000-06-05 18:13:23
|
----- Original Message ----- From: "Jim Harle" <ha...@us...> To: "Eric S. Johansson" <es...@ha...> Cc: <per...@ma...> Sent: Monday, June 05, 2000 2:03 PM Subject: Re: passing dynamic attribute lists > There are a variety of ways of doing this. My preference is > @base_attributes = ( > objectclass => 'minimalRadiusPerson', > ServiceType => '2', > FramedProtocol => 'PPP', > FramedMTU => '1500', > AscendIdleLimit => '900' > ); > $ldap_res = $mast_srv->add ($dn, > attrs => \@base_attributes > ); > > That is, using an array for the attribute list, then using a reference to > that array for "attrs". Don't forget the \ before the reference. I'm confused. I thought that attrs => [] was a reference to a hash not a list. Converting attributes to a fixed array makes things a little more tricky... |