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

App::LDAP::Connection - Singleton of Net::LDAP

SYNOPSIS

App::LDAP::Connection->new(
    "ldap://localhost",
    port    => 389,
    version => 3,
    onerror => "die",
);

App::LDAP::Connection->instance->bind(
    "cn=admin,dc=example,dc=org",
    password => "password",
);

App::LDAP::Connection->instance->search(
    base   => "ou=People,dc=example,dc=org",
    scope  => "sub",
    filter => "uid=foo",
);