all --

am having a strange problem configuring
authentication.  i edited
<<appname>>/META-INF/application.xml,
<<appname>>/META-INF/principals.xml and
/<<appname>>/<<appname>>-web/WEB-INF/web.xml files to
insert the appropriate security information. (all
listed below)

as a model i used an exchange about this subject that
took place on this list last fall.

authentication works perfectly on my local dev machine
(Win2K jdk1.3), but when i transfer the exact files up
to a linux server (RH 6.2 BD Jdk1.2.2-RC4) something
fails.  when i try to access the site the challenge
comes up, but the password i inserted will not work.

does anyone have any ideas about this?  am i missing
something out?  perhaps another entry somewhere else?

--bradley mclain

<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems,
Inc.//DTD J2EE Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/application_1_2.dtd">

<application>
        <display-name>USMOVING</display-name>
        <module>
                <web>
                        <web-uri>barbarossa-web</web-uri>
                        <context-root>/barbarossa</context-root>
                </web>
        </module>
        <security-role>
                <role-name>users</role-name>
        </security-role>

</application>


--and--

<?xml version="1.0"?>
<!DOCTYPE principals PUBLIC "//Evermind - Orion
Principals//"
"http://www.orionserver.com/dtds/principals.dtd">

<principals>
        <groups>
                <group name="users">
                        <description>Basic Internet users
group</description>
                </group>
                <group name="admin">
                        <description>Administrators</description>
                </group>
        </groups>
        <users>
                <user name="present" password="uberkael">
                        <name>kael goodman</name>
                        <description>kael goodman</description>
                        <group-membership group="users" />
                </user>
        </users>
</principals>

--and--

<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
        <display-name>USMOVINGB2C</display-name>
        <description>USMoving first B2C build</description>
        <servlet>
                <servlet-name>USMController</servlet-name>
                <display-name>USMController</display-name>
        
<servlet-class>com.usmoving.barbarossa.USMController</servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>
        <session-config>
                <session-timeout>30</session-timeout>
        </session-config>
        <welcome-file-list>
                <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
        
        <login-config>
                <auth-method>BASIC</auth-method>
                <realm-name>USMoving</realm-name>
        </login-config>
         
        <security-constraint>
                <web-resource-collection>
                        <web-resource-name>USMoving</web-resource-name>
                        <description>Main security</description>
                        <url-pattern>/*.jsp</url-pattern>
                        <http-method>GET</http-method>
                        <http-method>POST</http-method>
                </web-resource-collection>
                <auth-constraint>
                        <description>All users</description>
                        <role-name>users</role-name>
                </auth-constraint>
        </security-constraint>

        <security-role>
                <description>Role security</description>
                <role-name>users</role-name>
        </security-role>
</web-app>



__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Reply via email to