I've found that the file is wrong. It should be

role.users=all

Notice the 's' on users. For some reason, this file appears to be written
wrong.

HTH,
Sue

-----Original Message-----
From: Bernhard Herzog
To: JRun-Talk
Sent: 10/23/00 9:31 AM
Subject: PropertyFileAuthentication

Hi All,

I have tried to use Basic Authentication (PropertyFileAuthentication)
with JRun. The browser displays the login box - but whatever I enter
as username/password, I cannot login to my application
(401 Unauthorized).

==== jrun/lib/users.properties:

group.all=*
role.user=all
user.admin=adpexzg3FUZAk
role.administrator=admin

==== web.xml

<web-app>
<display-name></display-name><description></description>
<login-config>
  <auth-method>BASIC</auth-method>
  <realm-name>Administration</realm-name>
</login-config>

<security-constraint>
  <web-resource-collection>
    <web-resource-name>Administration</web-resource-name>
    <url-pattern>*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    <description>Admintool Resource</description>
  </web-resource-collection>
  <auth-constraint>
    <role-name>administrator</role-name>
    <description>Administrators only</description>
  </auth-constraint>
</security-constraint>
</web-app>

==============

Has anybody an idea what I am doing wrong here?

Thanks
Bernhard
------------------------------------------------------------------------
------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_tal
k
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to