-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
133 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,109 @@ | ||
<?php | ||
|
||
return array( | ||
'default' => array( | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP Server | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Address of the LDAP Server | ||
| | ||
| Example: 'cas.myuniv.edu'. | ||
| | ||
*/ | ||
|
||
'server' => 'ldap.domain.fr', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP Port (389 is default) | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'port' => '389', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP Base DN | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'basedn' => 'dc=domain,dc=fr', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Managed Organisation Units (OU) | ||
| Only people works for now | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'organisationUnits' => ['people', 'groups'], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP ADMIN bind DN | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'binddn' => 'cn=Manager,dc=domain,dc=fr', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP ADMIN bind password | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
'bindpwd' => 'password', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Cache time-to-live value in minutes. | ||
| How long should we cache result if found | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'cachettl' => 20, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Caching & Results array key. | ||
| This is typically a unique attribute from the directory OU | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'key' => 'dn', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default filter attribute | ||
| Will be used when calling short method like : | ||
| Ldap::people('xavrsl')->displayname; | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'filter' => 'login', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| User dn used for user authentication. | ||
| This is the distinguished name of a user that will authenticate to | ||
| the directory using a BIND. Typically named 'dn' | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'userdn' => 'dn', | ||
|
||
'searchscope' => 'SUBTREE_SCOPE', | ||
|
||
'attributes' => array( | ||
'uid', | ||
'displayName', | ||
'sn', | ||
'givenName', | ||
'mail', | ||
'edupersonAffiliation', | ||
'supannAffectation', | ||
'login', | ||
), | ||
), | ||
); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP Server | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Address of the LDAP Server | ||
| | ||
| Example: 'cas.myuniv.edu'. | ||
| | ||
*/ | ||
|
||
'server' => env('LDAP_HOST'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP Port (389 is default) | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'port' => env('LDAP_PORT', '389'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP Base DN | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'basedn' => env('LDAP_BASE_DN'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Managed Organisation Units (OU) | ||
| Only people works for now | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'organisationUnits' => ['people', 'groups'], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP ADMIN bind DN | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'binddn' => env('LDAP_BIND_DN', 'cn=Manager,dc=domain,dc=fr'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| LDAP ADMIN bind password | ||
|-------------------------------------------------------------------------- | ||
| | ||
*/ | ||
'bindpwd' => env('LDAP_BIND_PASSWORD'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Cache time-to-live value in minutes. | ||
| How long should we cache result if found | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'cachettl' => 20, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Caching & Results array key. | ||
| This is typically a unique attribute from the directory OU | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'key' => 'dn', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default filter attribute | ||
| Will be used when calling short method like : | ||
| Ldap::people('xavrsl')->displayname; | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'filter' => 'login', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| User dn used for user authentication. | ||
| This is the distinguished name of a user that will authenticate to | ||
| the directory using a BIND. Typically named 'dn' | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
'userdn' => 'dn', | ||
|
||
'searchscope' => 'SUBTREE_SCOPE', | ||
|
||
'attributes' => array( | ||
'uid', | ||
'displayName', | ||
'sn', | ||
'givenName', | ||
'mail', | ||
'edupersonAffiliation', | ||
'supannAffectation', | ||
'login', | ||
) | ||
); |