Using the settings I have below with the LDAP Browser supplied through Microsoft's XP Support Tools, I can see everybody in Active Directory. So I know I can get a connection+bind this way.
I entered the following parameters in photodirectory.jsp, but I keep getting "User could not be found". Since our servlet engine (Tomcat 5.5 running on Apache 2.2) is authenticated through the local system account (for now), I've set ldapUserId and ldapPassword to null.
String ldapServer = "**.**.**.**";
int ldapPort = ****;
String ldapRoot = "OU=****,DC=***,DC=com";
String ldapUserId = null;
String ldapPassword = null;
In the code, I even tried hard-coding the query parameters, but still get "User could not be found":
// String firstName = request.getParameter("f");
// String lastName = request.getParameter("l");
// String number = request.getParameter("n");
String firstName = "J";
String lastName = null;
String number = null;
Are there undocumented methods in the LDAPProvider object to test or see if LDAP is connecting and binding to the specified domain controller?