This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes Adding users and roles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Adding users and roles" Watch "Adding users and roles" New topic
Author

Adding users and roles

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
How can I add users, passwords and roles thru WSAD5.1?
[ December 13, 2006: Message edited by: PradeepPillai Pradeep ]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

In the admin console, open the Applications option and select Enterprise Applications. In the right pane, click on the application you want to do this for. Scroll the resulting page down until you see "Map security roles to users/groups".

I haven't done this for any of my applications but my guess is that this is what you are looking for.
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
I don't see this option to map in the list.
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
I am posting here a part of my web.xml that enforce the authentication and security. But it is not working as I wanted. Do I have to do anything else for the login.jsp to jump in when I access the restricted servlet?


<security-constraint>
<display-name>constraintSSL</display-name>
<web-resource-collection>
<web-resource-name>login page resource</web-resource-name>
<description></description>
<url-pattern>/login.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<description></description>
<role-name>everyone</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<display-name>non SSL constraint</display-name>
<web-resource-collection>
<web-resource-name>secured servlet resource</web-resource-name>
<description></description>
<url-pattern>/MemberS</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<description></description>
<role-name>authenticated_user</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/loginError.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description></description>
<role-name>everyone</role-name>
</security-role>
<security-role>
<description></description>
<role-name>authenticated_user</role-name>
</security-role>
[ December 13, 2006: Message edited by: PradeepPillai Pradeep ]
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
This is giving me a hard time posting my web.xml
 
 
subject: Adding users and roles
 
Similar Threads
How to assign users to security roles?
auth-constraint vs security-role
How to implement User Registry differently for each EAR installed in the same WAS
roles in struts
LDAP Users