Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Catmandu::Importer::LDAP - Package that imports LDAP directories

Configuration

       host
           The LDAP host to connect to

       base
           The base to bind to (if not specified it is an anonymous bind)

       password
           The password needed for the bind

       search_base
           The DN that is the base object entry relative to which the search is to be performed.

       search_filter
           One or more search filters. E.g.

              (givenName=Patrick)    # search Patrick
              (&(givenName=Patrick)(postalCode=9000))  # search Patrick AND postalcode=9000
              (|)(givenName=Patrick)(postalCode=9000)) # search Patrick OR postcalcode=9000

Methods

       Every  Catmandu::Importer  is  a  Catmandu::Iterable  all its methods are inherited.  The methods are not
       idempotent: LDAP streams can only be read once.

Name

       Catmandu::Importer::LDAP - Package that imports LDAP directories

See Also

       Catmandu , Catmandu::Importer , Catmandu::Iterable

perl v5.36.0                                       2023-02-04                      Catmandu::Importer::LDAP(3pm)

Synopsis

           # From the command line

           # Anonymous bind to find all 'Patrick's
           $ catmandu convert LDAP \
                   --host ldaps://ldaps.ugent.be \
                   --search-filter '(givenName=Patrick)' \
                   --search-base 'dc=ugent, dc=be' to YAML

           # From Perl

           use Catmandu;

           my $importer = Catmandu->importer('LDAP',
                                host          => 'ldaps://ldaps.ugent.be' ,
                                search_filter => '(givenName=Patrick)' ,
                                search_base   => 'dc=ugent, dc=be'
                           );

           my $exporter = Catmandu->exporter('YAML');

           $exporter->add_many($importer);

           $exporter->commit;

See Also