posted 18 years ago
I dont see any problem with the code u posted, try the following
1. trim the text which u got from the test field
2. some ldap may not allow the ananomous user to do search operations, so use security principal, credentials, to connect the ldap
env.put(Context.SECURITY_PRINCIPAL,properties.getDirSecurityPrincipal());
env.put(Context.SECURITY_CREDENTIALS,properties.getDirSecurityCredentials());
Measure twice cut once carpenter theory <br /> <br />Baiju <br />SCJCP, SCBCD, IBM-486, IBM-484, SCEA Part I