Browse Source

+ LDV::LDAP : POD

master
Alex 'AdUser' Z 10 years ago
parent
commit
90c00dd78e
  1. 47
      lib/LDV/LDAP.pm

47
lib/LDV/LDAP.pm

@ -117,3 +117,50 @@ sub update {
} }
1; 1;
=pod
=head1 NAME
LDV::LDAP -- ldap routines
=head1 METHODS
=head2 C<new>
my $ldap = LDV::LDAP->new(\%opts);
* server -- server to connect to (ip-address, default: localhost)
* binddn -- auth as this DB (like cn=admin,dc=example,dc=com, default: unset)
* bindpass -- auth with this password (string, default: unset)
* userbase -- where to search for users, (like dc=example,dc=com, default: unset)
* userfilter -- objects that pass the filter, considered as users (default : "(class=InetOrgPerson)"
=head2 C<create>
my $ldap = LDV::LDAP->new(\%opts);
my $err = $ldap->create($username);
Returns nothing on success or scalar with text of error.
=head2 C<delete>
my $ldap = LDV::LDAP->new(\%opts);
my $err = $ldap->delete($username);
Returns nothing on success or scalar with text of error.
=head2 C<get>
my $ldap = LDV::LDAP->new(\%opts);
my $attrs = $ldap->get($username);
Get user attributes. Returns HASH on success or undef if not found.
=head2 C<update>
my $ldap = LDV::LDAP->new(\%opts);
TODO
=cut

Loading…
Cancel
Save