j_security_check change the principal user
Hi, I have a problem. I have a web aplication (java,jsp) with j_security_check but the user that i use to authenticate need change por other in the Simpleprincipal for j_security_check store in the session as the primary user. Is posible? thanks, Sorry for my inglish. -- View this message in context: http://old.nabble.com/j_security_check-change-the-principal-user-tp26792345p26792345.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: j_security_check change the principal user
On 15/12/2009 10:03, peibel80 wrote: Hi, I have a problem. I have a web aplication (java,jsp) with j_security_check but the user that i use to authenticate need change por other in the Simpleprincipal for j_security_check store in the session as the primary user. Is posible? I don't think I understand what you're asking. You want to authenticate with one user, and then swap that for another? p thanks, Sorry for my inglish. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: j_security_check change the principal user
Pid Ster wrote: On 15/12/2009 10:03, peibel80 wrote: Hi, I have a problem. I have a web aplication (java,jsp) with j_security_check but the user that i use to authenticate need change por other in the Simpleprincipal for j_security_check store in the session as the primary user. Is posible? I don't think I understand what you're asking. You want to authenticate with one user, and then swap that for another? p thanks, Sorry for my inglish. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hi, thank for the reply. I try to explain I make login in jsp page login: person pass: xx i used j_security_check, then with an implementation of LoginModule valid user person against LDAP and when i make the return, some internal process recorded person in the PrincipalUser in the Session, and I want change person for person.example. is this possible? thanks -- View this message in context: http://old.nabble.com/j_security_check-change-the-principal-user-tp26792345p26794410.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: j_security_check change the principal user
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peibel, On 12/15/2009 8:03 AM, peibel80 wrote: I have a web application (java,jsp) with j_security_check but the user that i use to authenticate need change por other in the Simpleprincipal for j_security_check store in the session as the primary user. Is possible? [snip] I try to explain I make login in jsp page login: person pass: xx i used j_security_check, then with an implementation of LoginModule valid user person against LDAP and when i make the return, some internal process recorded person in the PrincipalUser in the Session, and I want change person for person.example. If you have a LoginModule, can't you just use any Principal you want? boolean login() { // whatever subject.getPrincipals().addPrincipal(new Principal(evildoer)); } Or maybe this goes in the commit() method. I've never used JAAS before, so I'm not familiar with the procedures. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksn2+4ACgkQ9CaO5/Lv0PBdzACcDTRSCkiS1Z4Oi6SgcB12YlaC PkQAnA9bW8yzuCYQuo+4pZu4HCVAuxMs =kydJ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org