Hi Biju,
> -----Original Message-----
> From: Biju Nair [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 23, 2000 11:19 PM
> To: [EMAIL PROTECTED]
> Subject: Doubt--Accessing User Information from underlying ORB
>
> Hi,
> I am working on an application which uses WAS security service. From the
> client an ORB instance is created and security context is established using
> the 'SecurityCurrent' service. The authentication data is set on the thread
> using the request_login method of _LoginHelper class provided by WAS. When
> the client tries to access an EJB deployed in WAS and protected by security,
> the server pulls the authentication data and does authentication.
>
> The getCallerIdentity() method of the SessionContext of EJB gives the User
> Identity. I am trying to get the user information from the underlying ORB.
> How can the server side ORB instance be obtained? I tried using
> com.ibm.ejs.oa.EJSORB.getORBInstance(). The get_current() method of this ORB
> instance gives exception
> org.omg.CORBA.NO_IMPLEMENT: minor code: 0 completed: No
> Is there any alternate method to obtain user information from the ORB
> instance?
The EJB spec. doesn't require implementors to provide standardized ORB
interfaces. It is a bad practice to try to access security informations
from the underlying ORB.
> Can the user identity be obtained from a normal java class outside WAS
> without information being passed from a bean?
Can you tell us what you are intending to do with user information
outside the Server?
/Francis.
--
[EMAIL PROTECTED]
MATHEMA Software GmbH
N�gelsbachstra�e 25 b
91052 E r l a n g e n
D e u t s c h l a n d
Tel +49(0)9131/8903-0
Fax +49(0)9131/8903-55
http://www.mathema.de
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".