@code739
php ldap_search operation error
This is the line that has the error:
$result = ldap_search($ldapconn,$base,$filter,$find);
You trying to search in Active Directory?
If you look closely it's this code:
$ldapconn = ldap_connect($ADServer) or die("Could not connect to LDAP server.");
The error means you are not connect correctly.
There should be a bridge connecting to $ldapconn and to $ldapbind.
Once it is connected your issue should be resolve.
I think.
Let me know if you have more questions.
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45