Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Sun One Webserver 6.1 and JAAS problem

 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic