2 Replies Latest reply on Feb 5, 2007 7:57 AM by narasimha murthy

    Is there help on Jaas

    Loic Newbie

      Hi all,

      I have an application running on JBoss3.0.4 and i would like to secure it with JAAS to have login passsword for the login on jsp pages.

      I would like to use for this the hypersonic database to store the login password.

      I tried to implement this but i can't find a good (and complete)documentation on this point.

      Can someone send me a link or a good tutorial...or a little ear doing that...to see how it works..

      Loic: lfredouille@edieyes.net

        • 1. Re: Is there help on Jaas
          JBoss JBoss Newbie

          Hello,
          There are several ways to create Users and Roles in JBoss.
          You can put them in 2 properties file to use with org.jboss.security.auth.spi.UsersRolesLoginModule
          or you can put them in 2 tables to use with org.jboss.security.auth.spi.DatabaseServerLoginModule
          or ...

          You can find a lot useful information in the book JBoss.3.0QuickStart.Draft3.pdf or in the online help.

          • 2. Re: Is there help on Jaas
            narasimha murthy Newbie

            Hi jbossjboss,

            Can you please tell me how to configure it in JBOSS 4.0.5 GA.
            I have tried both UsersRolesLoginModule and DatabaseServerLoginModule but it is giving the following exceptions...

            16:50:05,437 INFO [STDOUT] Login failed
            16:50:05,437 ERROR [STDERR] javax.security.auth.login.FailedLoginException: Pass
            word Incorrect/Password Required
            16:50:05,437 ERROR [STDERR] at org.jboss.security.auth.spi.UsernamePasswordL
            oginModule.login(UsernamePasswordLoginModule.java:213)
            16:50:05,437 ERROR [STDERR] at org.jboss.security.auth.spi.UsersRolesLoginMo
            dule.login(UsersRolesLoginModule.java:152)
            16:50:05,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
            Native Method)