Dancer2::Plugin::Auth::Extensible::Provider::LDAP - LDAP authentication provider for Dancer2::Plugin::Auth::Extensible
This class is a generic LDAP authentication provider.
See Dancer2::Plugin::Auth::Extensible for details on how to use the authentication framework.
The LDAP host name or IP address passed to "CONSTRUCTOR" in Net::LDAP.
Required.
Extra options to be passed to "CONSTRUCTOR" in Net::LDAP as a hash reference.
The base dn for all searches (e.g. 'dc=example,dc=com').
Required.
This must be the distinguished name of a user capable of binding to and reading the directory (e.g. 'cn=admin,dc=example,dc=com').
Required.
The password for "binddn".
Required.
The attribute to match when searching for a username.
Defaults to 'cn'.
The attribute which contains the full name of the user. See also:
"name" in Dancer2::Plugin::Auth::Extensible::Role::User.
Defaults to 'displayName'.
Filter used when searching for users.
Defaults to '(objectClass=person)'.
The attribute used when searching for role names.
Defaults to 'cn'.
Filter used when searching for roles.
Defaults to '(objectClass=groupOfNames)'
The attribute who's value should be a user's DN to show the user has the specific "role_attribute"'s value.
Defaults to 'member'.
Returns a connected Net::LDAP object.