The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Dochazka::REST::LDAP - LDAP module (for authentication)

VERSION

Version 0.125

DESCRIPTION

Container for LDAP-related stuff.

EXPORTS

METHODS

ldap_exists

Takes a nick. Returns true or false. Determines if the nick exists in the LDAP database. Any errors in communication with the LDAP server are written to the log.

Given Net::LDAP handle, LDAP field, and nick, search for the nick in the given field (e.g. 'uid', 'cn' etc.).

ldap_auth

Takes a nick and a password. Returns true or false. Determines if the password matches the one stored in the LDAP database.