--On Wednesday, July 20, 2005 5:52 PM +0200 Scott Ryan
<[EMAIL PROTECTED]> wrote:
Hi List, I am using Net::LDAP and i am trying to return an attribute in a
dn that has multiple values. When I do the search and use
$entry->get_value( $attr ) it only returns the one value. Is there a way
returning multiple attribute values?
Of course. :)
get_value ( ATTR, OPTIONS )
Get the values for the attribute ATTR. In a list context returns all
values for the given attribute, or the empty list if the attribute does not
exist. In a scalar context returns the first value for the attribute or
undef if the attribute does not exist.
So you simply need to use it in a list context.
See:
<http://perl.enstimac.fr/perl5.8.5//site_perl/5.8.5/Net/LDAP/Entry.html>
for more on this.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html