forked from chriskacerguis/codeigniter-restserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request chriskacerguis#149 from johann8384/master
adding LDAP support
- Loading branch information
Showing
3 changed files
with
138 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
$config['binduser'] = 'cn=Authentication,ou=Services,dc=example,dc=org'; | ||
$config['basedn'] = 'dc=example,dc=org'; | ||
$config['bindpw'] = 'E984asdy2'; | ||
|
||
/* | ||
* The host name parameter can be a space separated list of host names. | ||
* This means that the LDAP code will talk to a backup server if the main server is not operational. | ||
* There will be a delay while the code times out trying to talk to the main server but things will still work. | ||
*/ | ||
|
||
$config['server'] = 'ldapserver1.example.org ldapserver2.example.org'; | ||
$config['port'] = NULL; | ||
|
||
/* | ||
* Controls the LDAP_OPT_NETWORK_TIMEOUT option, this is how long the code will attempt to talk to the primary server if it is unreachable. | ||
*/ | ||
|
||
$config['timeout'] = 5; | ||
?> |
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