1 Reply Latest reply on Jun 28, 2006 9:21 AM by jaikiran

    Problem with the credential in login in struts

    cool_bhanu

      Iam developing sample login application in struts
      which should switch to https if the credential are correct
      i made the necessary modification in web.xml to contain
      the form-auth parameters and also in the login-config.xml
      I have made necessary modifcations like

      <module-option name="usersProperties">users.properties</module-option>

      but the problem iam facing is
      what ever username and password i enter is getting accepted
      i think it should be checked aainst the username and password
      of user.properties but its not doing
      but the switch is from http to https is going fine
      please tell me if iam doing something wrong

        • 1. Re: Problem with the credential in login in struts
          jaikiran

          You will have to add a security-domain element in the jboss-web.xml to enable the security authentication. Something like:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web.dtd">
          
          <jboss-web>
           <security-domain>java:/jaas/someSecurityDomain</security-domain>
          </jboss-web>