NAME

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

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.). Returns value of LDAP property specified in $prop.

ldap_auth

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