1 Reply Latest reply on Nov 5, 2005 7:08 PM by darranl

    Problems with JAAS

    kosl

      Dear all,

      I'm trying to secure web resources in jboss with jaas. I've configured everything (?) and in my web.xml I have:


      
      <login-config>
       <auth-method>FORM</auth-method>
       <realm-name>Levia application</realm-name>
       <form-login-config>
       <form-login-page>./login.jsp</form-login-page>
       <form-error-page>./loginerror.html</form-error-page>
       </form-login-config>
      </login-config>
      
      


      My problem is really strange (the strange thing is that I haven't found any information about this topic anywhere. I have no idea how to write the login.jsp page. Why? Of course I know how to make a form asking for username and password but how to "tell" jboss how should it use this form?

      I would be really grateful for any examples/links/comments.

      Kind regards,

      Karol Oslowski

        • 1. Re: Problems with JAAS
          darranl

          A search for 'form based servlet authentication' returns loads of pages relating to this.

          In brief the action of the form needs to be 'j_security_check' the name for the username needs to be 'j_username' and the name for the password needs to be 'j_password'