Rogerio,

I've been wrestling with this exact same problem, but haven't had any
more success than you have had thus far, so if you find out the answer
to this, can you please post a msg here?  I'll do the same...

Thanks,
Jim



Rogerio Baldini das Neves wrote:
> 
>  Hi!
> 
>  I'm using the Tomcat 5 JAASRealm for authenticating users with my own 
> LoginModule.
> In my LoginModule I am populating the Subject object delivered by the Realm 
> with Principals, Role Principals and Credentials.
> 
>  The authentication and the mapping of my user defined roles to tomcat roles 
> work fine, but I can´t get a reference to the Subject object in
>  my servlets.
> 
> I have tried:
> 
> AccessControlContext context = AccessController.getContext();
> Subject subject = Subject.getSubject(context);
> 
> But it´s not working... subject = null;
> 
> Can anybody help me, please ?
> 
> Rogerio.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to