Ok, how do I enable or plugin truststore and truststorepassword for LDAP authentication mechanism using spring security framework i.e. where do I configure these parameters, say for example in the security xml !
I am actually, trying to get a config something similar to this -
I am trying to achieve something to the above in the spring-security framework.Code://code from the sample ldap client ..... System.setProperty("javax.net.ssl.trustStore","keystore"); System.setProperty("javax.net.ssl.trustStorePassword","passwd"); ...... ...... Hashtable<String,String> env = new Hashtable<String,String>(); env.put( Context.INITIAL_CONTEXT_FACTORY, "com.rrr.xxx.yyyy" ); env.put( Context.PROVIDER_URL, connectionURL ); // authenticate with given password as current user env.put( Context.SECURITY_AUTHENTICATION, "simple" ); env.put( Context.SECURITY_PRINCIPAL, principal ); env.put( Context.SECURITY_CREDENTIALS, password ); env.put("com.sun.jndi.ldap.connect.timeout", LDAP_TIMELIMIT2); // create the initial context, this will fail if the password is wrong DirContext ctx = new InitialDirContext(env);


