We are using remote weblogic server 8.1 and we are using JNDI InitialContext for doing the LDAP authentication. We are passing user id, password, provider url and context factory for creating IntialContext as mentioned below.
This is inside the
servlet code:
env.put(Context.INITIAL_CONTEXT_FACTORY,ctxFactory);
env.put(Context.PROVIDER_URL,url);
env.put(Context.SECURITY_PRINCIPAL, uid);
env.put(Context.SECURITY_CREDENTIALS, pwd);
InitialContext ic = new InitialContext(env);
The LDAP is configured properly and we are passing cn,ou,dc as part of security_principal.
Our question is: what will be provider_url, we tried with t3:\\hostname:7001 and when accessing the servlet it is giving ConnectException for this url.
Any help is greatly appreciated!
Let me know for any questions.
Thanks,
Nathan Mathi.