• Post Reply Bookmark Topic Watch Topic
  • New Topic

Authentication

 
Vladimir Dovgalyuk
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Can anobody point to an example of how to provide user credentials while invoking EJB from client application via RMI?
I'm using WAS 4.03 with Global Security enabled and configured to authenticate users against local OS (NT 5.0). With EJB having security constraints I get the follwing error:
com.ibm.websphere.csi.CSIException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking bean's method name securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: role names.
Or please tell me where and how should I specifiy the login and password before invoking the bean's method.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should provide the user name and password when you create the InitialContext to the EJB container's JNDI tree.
For example:
 
Vladimir Dovgalyuk
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, I'll try it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!