GNU/Linux |
CentOS 4.8 |
i386 |
![]() |
Net::LDAP::Reference(3pm) |
![]() |
Net::LDAP::Reference − search reference
use Net::LDAP;
$ldap->search( @search_args, callback => \&process);
sub process {
my $mesg = shift;
my $obj = shift;
if (!$obj) {
# Search complete
}
elsif ($obj->isa(’Net::LDAP::Reference’)) {
my $ref;
foreach $ref ($obj->references) {
# process ref
}
}
else {
# Process Net::LDAP::Entry
}
}
The Net::LDAP::Reference object represents a reference (sometimes called a "referral") returned by the directory from a search.
references
Returns a list of references from the server.
Net::LDAP, Net::LDAP::Search
Graham Barr <gbarr@pobox.com>.
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl−ldap@perl.org>.
Copyright (c) 1997−2000 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id: Reference.pod,v 1.4 2003/05/07 11:14:22 chrisridd Exp $
![]() |
Net::LDAP::Reference(3pm) | ![]() |