at first: thanks for your answer!
I’ve successfully executed an «ldapsearch» on the command line. The next thing I did was some debugging and I figured out that at some point the execution stops and exits.
- LdapProvider -> authenticate()
- DirectoryService -> authenticate()
- DirectoryService -> bind()
- LdapBind -> bind()
- AbstractBindProvider -> bindWithDn()
In the last method «bindWithDn» the command “ldap_bind” will be executed and this is the command that fails without an exception. There’s a try catch around it but the error / exception won’t be caught. The next thing is that the code runs two times. It fails on «ldap_bind», executes «Ldap-Provider->authenticate()» and fails on «ldap_bind» again.
What I can see is that the password (for «ldap_bind») is the one that I’ve entered in the login mask. Shouldn’t it be the password for the bind user? Because the other parameter «userDn» is the string of the bind dn (configuration) and looks like “cn=bind user,cn=Users,dc=company,dc=com.”
I don’t know, maybe you or someone else can help me?
FYI: I’m using PHP 7.2.22 and Apache 2.4.37 on a local machine (Mac).