-----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: xxxxxx > > 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