I'm not sure what exact version are you testing with so I'm going to attach a patch that applies on the upstream 1.7 branch - that should be pretty close to what you have.
In order to use the debugging, you need to export the SSSD_DEBUG_LDAP_SEARCH variable with the desired LDAP debug level.
For example:
export SSSD_DEBUG_LDAP_SEARCH="0xffff"
would set LDAP_DEBUG_ANY
Then run SSSD on the foreground, the debug messages would simply appear on stderr.
I'm not sure what exact version are you testing with so I'm going to attach a patch that applies on the upstream 1.7 branch - that should be pretty close to what you have.
In order to use the debugging, you need to export the SSSD_DEBUG_ LDAP_SEARCH variable with the desired LDAP debug level.
For example: LDAP_SEARCH= "0xffff"
export SSSD_DEBUG_
would set LDAP_DEBUG_ANY
Then run SSSD on the foreground, the debug messages would simply appear on stderr.