The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::LDAPxs::Entry - An LDAP entry object

SYNOPSIS

  use Net::LDAPxs;
  
  $ldap = Net::LDAPxs->new ( $host );
  $msg = $ldap->search ( @search_args );
  
  @entries = $msg->entries();

  foreach my $entry (@entries) {
      foreach my $attr ($entry->attributes()) {
          foreach my $val ($entry->get_value($attr)) {
              print "$attr, $val\n";
          }
      }
  }

DESCRIPTION

The Net::LDAPxs::Entry object represents a single entry in the directory. It is a container for attribute-value pairs.

METHODS

attributes ( OPTIONS )

Return a list of attributes in this entry

dn ( )

Get the DN of the entry.

get_value ( ATTR )

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.

ACKNOWLEDGEMENTS

This document is based on the document of Net::LDAP::Entry

AUTHOR

Pan Yu <xiaocong@vip.163.com>

COPYRIGHT AND LICENSE

Copyright (C) 2008-2009 by Pan Yu. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.