0 Replies Latest reply on Nov 7, 2002 6:21 AM by Dhiraj

    It Authenticates !!! but....

    Dhiraj Newbie

      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">

      <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>

      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.

      Thank You
      Dhiraj Ramakrishnan