|
22 | 22 | | |
23 | 23 | */ |
24 | 24 | 'username' => "", |
25 | | - |
| 25 | + |
26 | 26 | /* |
27 | 27 | |-------------------------------------------------------------------------- |
28 | 28 | | Password |
|
32 | 32 | | |
33 | 33 | */ |
34 | 34 | 'password' => "", |
35 | | - |
| 35 | + |
36 | 36 | /* |
37 | 37 | |-------------------------------------------------------------------------- |
38 | 38 | | Basedn |
|
42 | 42 | | |
43 | 43 | */ |
44 | 44 | 'basedn' => "", |
45 | | - |
| 45 | + |
46 | 46 |
|
47 | 47 | /* |
48 | 48 | |-------------------------------------------------------------------------- |
|
54 | 54 | */ |
55 | 55 | 'filter' => "", |
56 | 56 |
|
57 | | - |
| 57 | + |
58 | 58 | /* |
59 | 59 | |-------------------------------------------------------------------------- |
60 | 60 | | LDAP field names that will be retrieved to create a user. |
61 | | - | |
| 61 | + | |
62 | 62 | | Using the username as an example: |
63 | 63 | | If I set 'result.username' => 'my-org-username', the code will connect to |
64 | 64 | | LDAP as follows (where $results[$i] represents a row in the LDAP query: |
|
69 | 69 | | |
70 | 70 | | The search filter for the LDAP query. |
71 | 71 | | |
72 | | - */ |
| 72 | + */ |
73 | 73 | 'result.username' => "", |
74 | 74 | 'result.emp.num' => "", |
75 | 75 | 'result.last.name' => "", |
76 | 76 | 'result.first.name' => "", |
77 | 77 | 'result.email' => "", |
| 78 | + |
| 79 | + /* |
| 80 | + | This field is optional as not all LDAP directories will have it. If yours |
| 81 | + | does not have it, just leave this field blank and the extra check will |
| 82 | + | be omitted. |
| 83 | + */ |
78 | 84 | 'result.active.flag' => "", |
79 | | - |
| 85 | + |
80 | 86 | /* |
81 | 87 | |-------------------------------------------------------------------------- |
82 | 88 | | LDAP filter query for authentication |
|
85 | 91 | | The LDAP query that we want to execute when authenticating a user |
86 | 92 | | |
87 | 93 | */ |
88 | | - 'authentication.filter.query' => "uid=" |
| 94 | + 'authentication.filter.query' => "uid=", |
| 95 | + |
| 96 | + /* |
| 97 | + |-------------------------------------------------------------------------- |
| 98 | + | LDAP Version |
| 99 | + |-------------------------------------------------------------------------- |
| 100 | + | |
| 101 | + | The LDAP query that we want to execute when authenticating a user |
| 102 | + | |
| 103 | + */ |
| 104 | + 'ldap_version' => 3, |
| 105 | + |
| 106 | + |
89 | 107 | ); |
0 commit comments