• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

JAAS for jboss 4.0.5

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to accomplish implmenting security and facing tons of issues.

has anyone have an example of using the DatabaseServerLoginModule to implment the role based security?

thanks
Harsh
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have one in our book (link is below). The source code is not on the book's site yet, so here is an extract used in the messaging chapter:

login-config.xml


MySQL


messaging-mysql-ds.xml


P.S. Yes, the book is about JBossAS 5.0, but the above code was originally written on 4.0.4 (5.0 was not even available yet), and I don't recall that we made any changes to it.
[ August 14, 2008: Message edited by: Peter Johnson ]
 
Harsha Jay
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I really appreciate your response. I just saw it.

I dug thro documentation and I was glad to get it up and working..I am going through the deployment now.

-Harsha
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you kindly post you solution? I am a newbie and would also to integrate JAAS with JBOss using UserNamePasswordLoginModule.

Your help would be greatly appreciated!

Thanks

S
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The UserNamePasswordLoginModule is an abstract class - you cannot use it as-is - you need to select one of the subclasses.
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic