Found the solution to my problem.  Not sure I broke it for other LDAPs but it works on FreeIPA.

modified ldap.inc.php  Line: 49.

#  $compare = ldap_compare($ds, $ldap_group, $config['auth_ldap_groupmemberattr'], $userdn);
$binduser = ldap_internal_dn_from_username($userdn);
$compare = ldap_compare($ds, $ldap_group ,$config['auth_ldap_groupmemberattr'], $binduser);




David Haché
Cell: 514.594.5841

On Mon, Mar 6, 2017 at 4:45 PM, David Haché <dave@dhache.com> wrote:

Hi, 
I have been using observium for a while and I am pleased with it.
Now when I try to integrate LDAP, I can't find the logs to troubleshoot.

I activated LDAP and it connect correctly, the query looks good but no go.

Log from my LDAP server
[06/Mar/2017:16:41:55.102124385 -0500] conn=255138 op=1 SRCH base="cn=users,cn=accounts,dc=domain,dc=com" scope=2 filter="(&(objectClass=posixaccount)(uid=dave))" attrs=ALL


Does anyone have suggestion how to activate the loggin for ldap on the PHP / NGINX / Observium side?
Thanks.



Dave