Hi all,
I created a web application in the default web server.
The root directory is under D:\myapp
In this directory, JRun created the Web-inf folder, in which i edited the
web.xml file to modify and use the authentication (cf. below)
I used the Command Prompt to create a user, and a role, copied and pasted
the results in users.properties (located in {jrun.rootdir}\lib\

I created a page login.jsp (using  j_username, j_password inputs and
j_security_check action) and loginerror.jsp,

When i request the site, the form of login.jsp appears, i type the right
user and pwd, but i'm not authenticated...

Where am i wrong ?
TIA
CG


<web-app>
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Admin Application</web-resource-name>
      <url-pattern>/admin/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      <description>Authentification</description>
    </web-resource-collection>
    <auth-constraint>
      <role-name>Administrators</role-name>
      <description>Administrators only</description>
    </auth-constraint>
  </security-constraint>
  <login-config>
    <auth-method>
      FORM
    </auth-method>
    <form-login-config>
      <form-login-page>
        /admin/login.jsp
      </form-login-page>
      <form-error-page>
        /admin/loginerror.jsp
      </form-error-page>
    </form-login-config>
  </login-config>
</web-app>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to