2 Replies Latest reply on Feb 12, 2004 3:52 AM by a_aravind_k

    Login problem

    a_aravind_k

      Hello,

      I have this simple problem.

      I have a custom LoginModule and described as follows in a conf file as follows

      JdbcLogin {
      de.coryx.cps.security.jdbc.JdbcLoginModule required
      jndiName = "java:/CpsJdbcDs"
      tableName = "CPT_USER"
      userColumnName = "CPT_USER"
      passwordColumnName = "PWD";
      };

      and the client authentication part is

      public static void main(String[] arg) throws Exception {
      try {
      LoginContext lc = new LoginContext("srp-client", new PropCallbackHandler());
      lc.login();
      } catch(LoginException e) {
      e.printStackTrace();
      System.out.println("error1 :" + e);
      }
      }

      I get this exception

      java:/CpsJdbcDs not bound.

      How do i make the class "de.coryx.cps.security.jdbc.JdbcLoginModule" available to the server?Do I have to make a jar file and drop in the deploy directory?

      Thanks
      Aravind



        • 1. Re: Login problem

          You are attempting to connect to a server side datasource from a client side login module. This won't work since the java:/ namespace is restricted to the server process.

          The login module implementation needs to exist on the server (you most likely want it in the config/lib directory) and you need to configure it on the server's loginconfig.xml file.

          • 2. Re: Login problem
            a_aravind_k

            Thanx Juha,

            i posted that message before i got the rite material.Now I understand how it works.

            regards
            Aravind