To make Feng Office version 1.7.3.1 on FreeBSD work with Active directory I have to add an 'options' to the configuration.
<?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=admin,ou=users,dc=example,dc=org',
'bindpw' => 'password',
'basedn' => 'dc=example,dc=org',
'host' => 'ldap.example.org',
'options' => array('LDAP_OPT_REFERRALS' => 0),
'uid' => 'uid' //Change in according with your settings to match the userid entry
);
return true;
?>