  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | LDAP Problem Scenerio | LDAP Problem Scenerio 2003-12-23 - By dinesh balam
Back
Hi All,
Here is a problem that I'm presently facing and would like to have some suggestions/soultion for this.
Problem Scenerio: Authentication/Authorization by LDAP server is not happening.
Description: I configured Websphere Application Server which comes with WSAD with NestScape Directory server version 4.2. I created 2 groups ADMIN, USER and few People under each group. I created two entity beans and a session facade bean. Facade bean will be talking to entity beans. I gave certain role based permissions to the methods in session Facade bean. Only admin has permission for all the methods where as user is limited to certain methods. To test these functionality WSAD provides a Universal test client, where i can give the required parameters like SECURITY_PRINCIPAL AND SECURITY_CREDENTIAL. With this Universal test client it is working fine as expected. Where as when i am accessing the same with my web based struts client by passing the same parameters as above it is not working as expected. The exception says the user is UNATHUNICATED. Here i am giving the trace
Exception data: com.ibm.websphere.csi.CSIException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Bean)ejb/itrm/AdminFacadeHome getAllRoles:1 securityName: /UNAUTHENTICATED;accessID: null is not granted any of the required roles: ADMIN USER Thanks in Advance,Dinesh B
-- ---- ---- ---- ---- ---- ----- Do you Yahoo!? Yahoo! Photos - Get your photo on the big screen in Times Square
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected) <DIV> <DIR><FONT size=2> <P><STRONG>Hi All,</STRONG></P> <P>Here is a problem that I'm presently facing and would like to have some suggestions/soultion for this.</P> <P><STRONG>Problem Scenerio:</STRONG> Authentication/Authorization by LDAP server is not happening.</P> <P><B>Description: </B>I configured Websphere Application Server which comes with WSAD with NestScape Directory server version 4.2. I created 2 groups ADMIN , USER and few People under each group. I created two entity beans and a session facade bean. Facade bean will be talking to entity beans. I gave certain role based permissions to the methods in session Facade bean. Only admin has permission for all the methods where as user is limited to certain methods. To test these functionality WSAD provides a Universal test client, where i can give the required parameters like SECURITY_PRINCIPAL AND SECURITY_CREDENTIAL. With this Universal test client it is working fine as expected. Where as when i am accessing the same with my web based struts client by passing the same parameters as above it is not working as expected. The exception says the user is UNATHUNICATED. Here i am giving the trace </P></FONT><FONT color=#0000ff face="Courier New" size=2> <P></FONT><FONT color=#0000ff face="Courier New" size=2>Exception data: com.ibm .websphere.csi.CSIException: SECJ0053E: Authorization failed </FONT><FONT color= #0000ff face="Courier New" size=2></FONT><FONT color=#0000ff face="Courier New" size=2>for /UNAUTHENTICATED while invoking (Bean)ejb/itrm/AdminFacadeHome getAllRoles:1 </FONT><FONT color=#0000ff face="Courier New" size=2></FONT><FONT color=#0000ff face="Courier New" size=2>securityName: /UNAUTHENTICATED;accessID : null is not granted any of the required </FONT><FONT color=#0000ff face= "Courier New" size=2></FONT><FONT color=#0000ff face="Courier New" size=2>roles: ADMIN USER </P></FONT><FONT size=2>Thanks in Advance,</FONT></DIR> <DIR><FONT size=2>Dinesh B</DIR></FONT></DIV><p><hr SIZE=1> Do you Yahoo!?<br> Yahoo! Photos - <a href="http://us.rd.yahoo.com/evt=21486/*http://f1.pg.photos .yahoo.com/ph//spsimplenol?.file=ny_ts_splash.html">Get your photo on the big screen in Times Square</a> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |