env.put(Context.SECURITY_AUTHENTICATION, "simple");
// Specify SSL
env.put(Context.SECURITY_PROTOCOL, "ssl");
env.put("java.naming.ldap.factory.socket",
org.nasutekds.admin.ads.util.TrustedSocketFactory.class.getName());
TrustedSocketFactory.setCurrentThreadTrustManager(new BlindTrustManager(),
null);
DirContext ctx;
try {
ctx = new InitialLdapContext(env, null);
} catch (javax.naming.CommunicationException e) {