1+ <?php
2+
3+ return [
4+
5+ /*
6+ |--------------------------------------------------------------------------
7+ | Auto Connect
8+ |--------------------------------------------------------------------------
9+ |
10+ | If auto connect is true, anytime Adldap is instantiated it will automatically
11+ | connect to your AD server.
12+ |
13+ */
14+
15+ 'auto_connect ' => true ,
16+
17+ /*
18+ |--------------------------------------------------------------------------
19+ | Connection Settings
20+ |--------------------------------------------------------------------------
21+ |
22+ | This connection settings array is directly passed into the Adldap constructor.
23+ |
24+ | Feel free to add or remove settings you don't need.
25+ |
26+ */
27+
28+ 'connection_settings ' => [
29+
30+ /*
31+ |--------------------------------------------------------------------------
32+ | Account Suffix
33+ |--------------------------------------------------------------------------
34+ |
35+ | The account suffix option is the suffix of your user accounts in AD.
36+ |
37+ | For example, if your domain DN is DC=corp,DC=acme,DC=org, then your
38+ | account suffix would be @corp.acme.org. This is then appended to
39+ | then end of your user accounts on authentication.
40+ |
41+ */
42+
43+ 'account_suffix ' => '@acme.org ' ,
44+
45+ /*
46+ |--------------------------------------------------------------------------
47+ | Domain Controllers
48+ |--------------------------------------------------------------------------
49+ |
50+ | The domain controllers option is an array of servers located on your
51+ | network that serve Active Directory. You insert as many servers or
52+ | as little as you'd like depending on your forest (with the
53+ | minimum of one of course).
54+ |
55+ */
56+
57+ 'domain_controllers ' => ['corp-dc1.corp.acme.org ' , 'corp-dc2.corp.acme.org ' ],
58+
59+ /*
60+ |--------------------------------------------------------------------------
61+ | Port
62+ |--------------------------------------------------------------------------
63+ |
64+ | The port option is used for authenticating and binding to your AD server.
65+ |
66+ */
67+
68+ 'port ' => 389 ,
69+
70+ /*
71+ |--------------------------------------------------------------------------
72+ | Base Distinguished Name
73+ |--------------------------------------------------------------------------
74+ |
75+ | The base distinguished name is the base distinguished name you'd like
76+ | to perform operations on. An example base DN would be DC=corp,DC=acme,DC=org.
77+ |
78+ | If one is not defined, then Adldap will try to find it automatically
79+ | by querying your server. It's recommended to include it to
80+ | limit queries executed per request.
81+ |
82+ */
83+
84+ 'base_dn ' => 'dc=corp,dc=acme,dc=org ' ,
85+
86+ /*
87+ |--------------------------------------------------------------------------
88+ | Administrator Username & Password
89+ |--------------------------------------------------------------------------
90+ |
91+ | When connecting to your AD server, an administrator username and
92+ | password is required to be able to query and run operations on
93+ | your server(s). You can use any user account that has
94+ | these permissions.
95+ |
96+ */
97+ 'admin_username ' => 'username ' ,
98+ 'admin_password ' => 'password ' ,
99+
100+ /*
101+ |--------------------------------------------------------------------------
102+ | Base Distinguished Name
103+ |--------------------------------------------------------------------------
104+ |
105+ | The follow referrals option is a boolean to tell active directory
106+ | to follow a referral to another server on your network if the
107+ | server queried knows the information your asking for exists,
108+ | but does not yet contain a copy of it locally.
109+ |
110+ | This option is defaulted to false.
111+ |
112+ */
113+
114+ 'follow_referrals ' => false ,
115+
116+ /*
117+ |--------------------------------------------------------------------------
118+ | SSL & TLS
119+ |--------------------------------------------------------------------------
120+ |
121+ | If you need to be able to change user passwords on your server, then an
122+ | SSL or TLS connection is required. All other operations are allowed
123+ | on unsecured protocols. One of these options are definitely recommended
124+ | if you have the ability to connect to your server securely.
125+ |
126+ */
127+
128+ 'use_ssl ' => false ,
129+ 'use_tls ' => false ,
130+
131+ /*
132+ |--------------------------------------------------------------------------
133+ | SSO (Single Sign On)
134+ |--------------------------------------------------------------------------
135+ |
136+ | If you enable single sign on, be sure you've properly set it up
137+ | on your server before hand.
138+ |
139+ */
140+
141+ 'use_sso ' => false ,
142+
143+ ],
144+
145+ ];
0 commit comments