Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sun One Webserver 6.1 and JAAS problem

 
Jari Timonen
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic