File: ldapdb.pm

package info (click to toggle)
liburi-db-perl 0.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 1,599; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 587 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package URI::ldapdb;
use base 'URI::_db';
our $VERSION = '0.23';

sub dbi_driver   { 'LDAP' }

sub _dbi_param_map {
    my $self = shift;
    return (
        [ dbname => scalar $self->dbname ],
    );
}

sub dbi_dsn {
    my $self = shift;
    return join ':' => 'dbi', $self->dbi_driver, $self->dbname
}

1;

=head1 Name

URI::ldapdb - LDAP database URI

=head1 Description

Linkage between URI::db and DBD::LDAP. I would have used L<URI::ldap>, but
that was already taken for a module with slightly different intentions.

=head1 Contributed By

Brian T. Wightman <mlx@cpan.org>

=cut