-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
76 lines (50 loc) · 1.67 KB
/
README
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
NAME
Dancer2::Plugin::Auth::Extensible::Provider::LDAP - LDAP authentication
provider for Dancer2::Plugin::Auth::Extensible
DESCRIPTION
This class is a generic LDAP authentication provider.
See Dancer2::Plugin::Auth::Extensible for details on how to use the
authentication framework.
ATTRIBUTES
host
The LDAP host name or IP address passed to "CONSTRUCTOR" in Net::LDAP.
Required.
options
Extra options to be passed to "CONSTRUCTOR" in Net::LDAP as a hash
reference.
basedn
The base dn for all searches (e.g. 'dc=example,dc=com').
Required.
binddn
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.
bindpw
The password for "binddn".
Required.
username_attribute
The attribute to match when searching for a username.
Defaults to 'cn'.
name_attribute
The attribute which contains the full name of the user. See also:
"name" in Dancer2::Plugin::Auth::Extensible::Role::User.
Defaults to 'displayName'.
user_filter
Filter used when searching for users.
Defaults to '(objectClass=person)'.
role_attribute
The attribute used when searching for role names.
Defaults to 'cn'.
role_filter
Filter used when searching for roles.
Defaults to '(objectClass=groupOfNames)'
role_member_attribute
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'.
METHODS
ldap
Returns a connected Net::LDAP object.
authenticate_user $username, $password
get_user_details $username
get_user_roles