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 (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