Net::LD...ference(3)
β¨ NAME β¨
Net::LDAP::Reference - search reference. Also hi bestie, this is the Net::LD...ference(3) page from User Contributed Perl Documentation, and we're about to make it make sense. π
π SYNOPSIS π
Okay so the callback flow is giving whole little group-chat script, and here it is:
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
}
}
π¦ DESCRIPTION π¦
The Net::LDAP::Reference object represents a reference (sometimes called a "referral") returned by the directory from a search. That's the whole mood: the directory is basically saying βbestie, look over there,β and this object is the thing that carries that reference energy. π
π METHODS π
references
Returns a list of references from the server. That's it β one method, zero drama, very demure. π«Ά
π SEE ALSO π
Net::LDAPπNet::LDAP::Searchβ¨
π AUTHOR π
Shoutout to Graham Barr <gbarr@pobox.com>. β icon behavior only. π
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>.
π COPYRIGHT π
Copyright (c) 1997-2004 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.
Okay bye bestie! π«Ά This page is perl v5.42.0, dated 2024-01-02, and it's filed under Net::LD...ference(3). Stay slay and keep your references close. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-ldap 0.68-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms