Copied from a post by Dharmesh Rana: http://www.mail-archive.com/slide-user@jakarta.apache.org/msg07249.html
I have successfully deployed slide.war server libraries on WebLogic Server 8.1 using BASIC authentication.
Steps are as under:-
- I created a domain e.g. test
- Created a new Security Realm... (e.g. WabanDAV)
- Then using Providers Tab create the follwing:
DefaultAdjudicator
DefaultIdentity & DefaultAsserter
DefaultAuthorizer
DefaultCredentialMapper
DefaultRoleMapper
- After that click to your domain name in your left pane (Here mine is "test")
- Click from the right pane to the hyperlink " View Domain-wide Security Settings"
- Select the Default Realm from the list box (here mine is "WabanDAV") and click "Apply" button
- Click on the User Management Tab for WabanDAV Security Realm
- Click the Manage Groups within Security Realm
- Configure a new group by giving name as "mygroup"
- Click Manage Users within Security Realm hyperlink to create new users
- Create the following new users by clicking hyperlink "Configure a new User"
- Create following users by filling up Name and Password fields:-
- User Name Password(Min 8 characters)
- root rootpass
- guest guestpass
- Select user "root" and click on "Groups" Tab
- Select the "mygroup" from the "Possible Groups" list box to "Current Groups"
- This will allow the group to which this user belongs.
- Similarly, Select user "guest" and click on "Groups" Tab and select the group for the user "guest"
- Select the "mygroup" from the "Possible Groups" list box to "Current Groups"
- Click the Manage Groups within Security Realm
Enable the <auth-constraint> element in web.xml. Check the web.xml:-
<web-app> - - - <auth-constraint> <role-name>root</role-name> <role-name>guest</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>NONE</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>WabanDAV</realm-name> </login-config> <security-role> <role-name>root</role-name> </security-role> <security-role> <role-name>guest</role-name> </security-role> - - - - <web-app>
- Create the weblogic.xml
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd"> <weblogic-web-app> <security-role-assignment> <role-name>root</role-name> <principal-name>mygroup</principal-name> </security-role-assignment> <security-role-assignment> <role-name>guest</role-name> <principal-name>mygroup</principal-name> </security-role-assignment> </weblogic-web-app>
Create the slide.war and test using http://localhost:7001/slide/
- This will provide the Login Screen
- Fill up the username as "root" and password as "rootpass" and check the application.