public static void main(String[] args) throws NamingException { // Set up the environment for creating the initial context Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://XXXX"); // Specify SSL env.put(Context.SECURITY_PROTOCOL, "ssl"); env.put(Context.SECURITY_AUTHENTICATION, "simple"); env.put(Context.SECURITY_PRINCIPAL, "XXXXX"); env.put(Context.SECURITY_CREDENTIALS, "XXXX"); // Create the initial context @SuppressWarnings("unused") DirContext ctx = new InitialDirContext(env); }Added the same CA file to the truststore and tried... The ctx is created fine and connection thourgh SSL is created...Here's my user_databases.xml:<iwldap id="ldap_1" display_name="LDAP" os="f"> <server value="XXXXXX"> </server> <ssl_port value="686" /> <CAFile value="C:/iw-home/tools/db/Netscape/cert7.db" /> <search_key value="cn"> </search_key> <dnBase value="XXXXX"> </dnBase> <account value="XXXXXX" /> <password value="52616e646f6d4956c82bafa0f00705855388ad08311726b3d8e394699ebaa3ce" /> <attr_email value="mail"> </attr_email> <attr_display_name value="cn"> </attr_display_name> </iwldap>Just to be clear the same info baseDB, user DB, and password are used in both the Java program and the TS config file.Any ideas? Am I missing the obvious? Or is it support ticket time?Thanks in advance
Added the same CA file to the truststore and tried... The ctx is created fine and connection thourgh SSL is created...Here's my user_databases.xml:<iwldap id="ldap_1" display_name="LDAP" os="f"> <server value="XXXXXX"> </server> <ssl_port value="686" /> <CAFile value="C:/iw-home/tools/db/Netscape/cert7.db" /> <search_key value="cn"> </search_key> <dnBase value="XXXXX"> </dnBase> <account value="XXXXXX" /> <password value="52616e646f6d4956c82bafa0f00705855388ad08311726b3d8e394699ebaa3ce" /> <attr_email value="mail"> </attr_email> <attr_display_name value="cn"> </attr_display_name> </iwldap>Just to be clear the same info baseDB, user DB, and password are used in both the Java program and the TS config file.Any ideas? Am I missing the obvious? Or is it support ticket time?Thanks in advance
<iwldap id="ldap_1" display_name="LDAP" os="f"> <server value="XXXXXX"> </server> <ssl_port value="686" /> <CAFile value="C:/iw-home/tools/db/Netscape/cert7.db" /> <search_key value="cn"> </search_key> <dnBase value="XXXXX"> </dnBase> <account value="XXXXXX" /> <password value="52616e646f6d4956c82bafa0f00705855388ad08311726b3d8e394699ebaa3ce" /> <attr_email value="mail"> </attr_email> <attr_display_name value="cn"> </attr_display_name> </iwldap>