Re: JAASRealm and Subject

2005-07-19 Thread Rogerio Baldini das Neves
Subject: Re: JAASRealm and Subject Jo, Thanks for the hint. I think that your comment, along with the section labelled How can I access members of a custom Realm or Principal? here: http://wiki.apache.org/jakarta-tomcat/HowTo might allow the Principal to be allowed. I can get

Re: JAASRealm and Subject

2005-07-19 Thread ohaya
: ohaya [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, July 18, 2005 10:14 PM Subject: Re: JAASRealm and Subject Jo, Thanks for the hint. I think that your comment, along with the section labelled How can I access members of a custom Realm

Re: JAASRealm and Subject

2005-07-19 Thread Rogerio Baldini das Neves
Ok, Jim You are right in this point. It´s possible to get Principal but not Subject. Rogerio - Original Message - From: ohaya [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, July 19, 2005 1:10 PM Subject: Re: JAASRealm and Subject Rogerio, Re

JAASRealm and Subject

2005-07-18 Thread Rogerio Baldini das Neves
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

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
Hi, I'm not 100% sure if this is applicable, but I just found this: Due to a design oversight in the JAAS 1.0, javax.security.auth.Subject.ge­tSubject() does not return the Subject associated with the thread of execution inside a java.security.AccessController­.doPrivileged() code block.

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
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

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
Rogerio, Try taking a look at this page: http://www.kopz.org/public/documents/tomcat/jaasintomcat.html I read through this awhile ago, but as I was just re-reading it for maybe the 10th time, I think that I'm starting to see the light and understand what the page's author (Michiel Toneman)

Re: JAASRealm and Subject

2005-07-18 Thread Jo
Is casting request.getUserPrincipal() to your custome-made Principal gonna help get what you want ? Jojada.- - Original Message - From: ohaya [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, July 19, 2005 9:46 AM Subject: Re: JAASRealm and Subject

Re: JAASRealm and Subject

2005-07-18 Thread ohaya
:46 AM Subject: Re: JAASRealm and Subject Rogerio, Try taking a look at this page: http://www.kopz.org/public/documents/tomcat/jaasintomcat.html I read through this awhile ago, but as I was just re-reading it for maybe the 10th time, I think that I'm starting to see the light