I am trying to check if a user exists in AD using ldap in php. Please note that I am not trying to authenticate, only sort of validating a username..
I call ldap_bind without username or password credentials, meaning I am binding anonymously. However, whenever I call ldap_search, it returns a 500 -Internal Server Error, and on checking my dev.log file, I find that a kernel.exception was thrown.
When I use a username&password combination the call to ldap_bind, it works. However this is not what I am trying to do. The username I will be verifying will not be coming along with a password eventually.
How can I possibly get ldap_search when ldap_bind has been called anonymously?
I am using that Symfony2 framework, and thanks, in advance.