This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes Sun One Webserver 6.1 and JAAS problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Sun One Webserver 6.1 and JAAS problem" Watch "Sun One Webserver 6.1 and JAAS problem" New topic
Author

Sun One Webserver 6.1 and JAAS problem

Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 230
Hello,

I'm trying to make custom realm with jdbcrealm example.
I can't understand how i can forward other information than requesr.getPrincipal().getName() to jsp page.
I need to fecth groups and roles from database and use the in jsp-pages.

I have made my own SamplePrincipal that implements Principal, java.io.Serializable.
If i try to add it to _subect.getPrincipals().add( myownprincipal) (_subject in parent class PasswordLoginModule), it gives me error in login:

info: for host 192.168.100.38 trying to GET /basic-auth/, service-j2ee reports:
SEC5046: Audit: Authentication refused for [j2ee].

Please help me! Thanks!

Jari Timonen
Software Designer


SCJP 5.0, SCJD URLyBird 1.3.3, OCMJEA 5 (SCEA) Factory Homes
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Sun One Webserver 6.1 and JAAS problem
 
Similar Threads
JBuilder & SUN J2EE server
Getting J2EE for use on Mac OS X
.NET feature equivilants in J2EE
STRUTS: WHY???
jsp and mysql