Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Login Module configuration

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am pretty new to Jboss server. Can anybody help me out in cofiguring Login Module. My requirement is not to use any property files, the username and password should be stored in Jboss inbuilt database server(if it has one). Quick reply would be highly appreciated.

Thanks and Regards,
Kalai Selvan T.
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use DatabaseServerLoginModule. See JBoss QuickStart.pdf, or jbossj2ee.pdf for more explanation.
 
Kalai Selvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Sanju Tanks for your reply.
Can u (or any one else) please help me out in using HypersonicSql database for jaas authentication. I gone through the quickstart.pdf, its looking bit bouncer for me........


Thanks and Regards,
Kalai Selvan T.
 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to give an entry in the JBOSS_HOME/server/conf/login-module.xml file. It would be something like this.




You have to use application policy name in the jboss.xml file. Then it would be something like this.

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain>java:/jaas/yourname</security-domain>
</jboss-web>

Noramally java:/DefaultDS datasource is bound to hypersonic in JBoss. so no need to deploy any file for that. But still you need to use a client login module to populate the user principal and credential to the JBoss. for more details on using DatabaseServerLoginModule

JBoss and JAAS

If you need more help, feel free to ask.
[ May 16, 2005: Message edited by: Sanju Thomas ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic