This content has been marked as final.
Show 2 replies
-
1. Re: Active Directory configuration for loginmodule
sandipan_s Jun 6, 2005 3:32 PM (in response to sandipan_s)Hi,
It will be great if you can share your experience or give some input.
Thanks -
2. Re: Active Directory configuration for loginmodule
sandipan_s Jun 7, 2005 4:12 PM (in response to sandipan_s)i found the solution - the following is my configuration :
Properties props = new Properties();
props.setProperty(Context.SECURITY_PRINCIPAL, user.getUserName()+"@domain");
props.setProperty(Context.SECURITY_CREDENTIALS,user.getPassword());
props.setProperty(Context.INITIAL_CONTEXT_FACTORY, contextFactory);
props.setProperty(Context.PROVIDER_URL, providerURL);
props.setProperty(Context.SECURITY_AUTHENTICATION, securityAuth);
DirContext dir = new InitialDirContext(props);
Thanks