3 Replies Latest reply on Apr 14, 2004 11:04 AM by antoine

    DatabaseserverLoginModule : datasource not bound

    antoine Newbie

      hello,

      it seems client application can't find database.

      I receive this message :
      javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: FwkDS not bound
      at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:110)

      My auth.conf :
      MyLogin
      {
      //Login Module Needed - I use Database (Note it correlates to what I had in login-config.xml
      org.jboss.security.auth.spi.DatabaseServerLoginModule required dsJndiName="java:/FwkDS" principalsQuery="select PWPASWWORD from itcuser where NMNOM=?"
      rolesQuery="select role, 'Roles' from itcuserrole where NMNOM=?";
      };
      //NOT 100% SURE IF THIS IS NEEDED, SINCE I HAVEN'T DONE THIS IN A WHILE AND I FORGET,
      //BUT IT'S IN MY FILE (Although I think it's not needed)
      other
      {
      //DEFAULT CLIENT-LOGIN MODULE
      org.jboss.security.ClientLoginModule required;
      };

      My security domain in login-config :
      <application-policy name = "MyLogin">

      <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">

      <module-option name = "dsJndiName">java:/FwkDS</module-option>

      <module-option name = "principalsQuery">select PWPASWWORD from itcuser where NMNOM=?</module-option>

      <module-option name = "rolesQuery">select role, 'Roles' from itcuserrole where NMNOM=?</module-option>

      </login-module>

      </application-policy>

      Thanks for your help

      Antoine