Nicolas Steenlant > Catmandu-LDAP > Catmandu::Importer::LDAP

Download:
Catmandu-LDAP-0.0103.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

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

SYNOPSIS ^

    use Catmandu::Importer::LDAP;

    my $importer = Catmandu::Importer::LDAP->new(
        base => "...",
        password => "...",
        search_base => "...",
        search_filter => "(&(...)(...))",
        attributes => {
            name => 1,
            # or
            name => {as => "Name"},
            # or
            name => {as => "Name", array => 1},
        },
    );

    my $n = $importer->each(sub {
        my $hashref = $_[0];
        # ...
    });
syntax highlighting: