Hi all, I am using JBoss-3.0.2 and have configured the login-config.xml to work with LDAP Server. My login-config.xml looks like this,
<application-policy name = "myLdap"> <authentication> <login-module code = "org.jboss.security.auth.spi.LdapLoginModule" flag = "required"> <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module- option> <module-option name="java.naming.provider.url">ldap://hyd.nimaya.com:389/ </module-option> <module-option name="java.naming.security.authentication">simple</module-option> <module-option name="principalDNPrefix">cn=WLSPrincipal</module-option> <module-option name="principalDNSuffix">,cn=users,dc=hyd,dc=nimaya,dc=com </module-option> <module-option name="rolesCtxDN"></module-option> <module-option name="matchOnUserDN">true</module-option> </login-module> </authentication> </application-policy> My application uses a JTree to help ease the navigation through the whole application. The problem i am facing is that , it is authenticating the users present in the LDAP Server. But when it is trying to initialize the applet it is asking once again for the username and password. there even if i give junk values it accepts ... even if i don't give any values it makes no difference. I have to click on that login pop up at least 10 times , then it allows me to enter the application, else the left side JTree Applet doesn't show up at all. One possible explanation that i got is that it is trying to get all the jars needed by the applet from the server , hence is trying to authenticate each time. Is there any way to avoid this?? I hope i have been clear in explaining my problem to you. Please let me know - If there is some other configuration i need to do. - My Login-config.xml contains only the above code is there something else i need to do. You can also reach me at [EMAIL PROTECTED] Thank You Dhiraj Ramakrishnan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user