Look in <FENG ROOT>/config - you should find 'ldap.config.example.php'.
Copy this file to 'ldap.config.php'.
Edit the copy to contain appropriate values for your LDAP directory.
Once configured, you will still need to pre-create users in feng.
So, for my Active Directory network, my settings look like this:
<?php
/**
* ldap.config.example.php is sample configuration file for ldap authentication.
* Rename it in ldap.config.php and change the values acconrding to your env.
*
* @author Luca Corbo <luca.corbo@2bopen.org>
*/
// The configuration array:
$config_ldap = array (
'binddn' => 'CN=LDAP-Bind-User,OU=myorg.org,DC=myorg,DC=org,DC=local',
'bindpw' => 'password-for-bind-user',
'basedn' => 'OU=Users,OU=myorg.org,DC=myorg,DC=org,DC=local',
'host' => 'localhost:3893',
'uid' => 'sAMAccountName' //Change in according with your settings to match the userid entry
);
return true;
?>
* My user accounts are contained in the Organizational Unit 'myorg.org'
* the user account 'LDAP-Bind-User' has full read rights to my AD
* In my case, I am tunneling traffic from port 3893 to my actual AD controller's port 389 using ssh (hence the odd 'host' setting).
* with 'uid' set to 'sAMAccountName', I need to pre-create user accounts in Feng that match the network user names that users enter when logging in to their windows workstations. Feng then finds these users in LDAP and authenticates them if the correct password is entered.