Skip to content

Commit 870a288

Browse files
Hanisch-ITchriskacerguis
authored andcommitted
Bugfix/chriskacerguis#844 ldap configuration (chriskacerguis#847)
* Bugfix - Fix: format initialization without composer - Fix: Readme * Bugfix: Make LDAP available - Created missing config ldap.php - Correct loading of config (remove .php)
1 parent d3e39db commit 870a288

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

application/config/ldap.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
$config['binduser'] = 'cn=Authentication,ou=Services,dc=example,dc=org';
3+
$config['basedn'] = 'dc=example,dc=org';
4+
$config['bindpw'] = 'E984asdy2';
5+
/*
6+
* The host name parameter can be a space separated list of host names.
7+
* This means that the LDAP code will talk to a backup server if the main server is not operational.
8+
* There will be a delay while the code times out trying to talk to the main server but things will still work.
9+
*/
10+
$config['server'] = 'ldapserver1.example.org ldapserver2.example.org';
11+
$config['port'] = NULL;
12+
/*
13+
* 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.
14+
*/
15+
$config['timeout'] = 5;

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,7 @@ protected function _perform_ldap_auth($username = '', $password = NULL)
18231823

18241824
log_message('debug', 'LDAP Auth: Loading configuration');
18251825

1826-
$this->config->load('ldap.php', TRUE);
1826+
$this->config->load('ldap', TRUE);
18271827

18281828
$ldap = [
18291829
'timeout' => $this->config->item('timeout', 'ldap'),

0 commit comments

Comments
 (0)