aspose file tools
The moose likes JBoss and the fly likes Login Module configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Login Module configuration" Watch "Login Module configuration" New topic
Author

Login Module configuration

Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
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.
Sanju Thomas
Ranch Hand

Joined: Dec 29, 2004
Posts: 243
You can use DatabaseServerLoginModule. See JBoss QuickStart.pdf, or jbossj2ee.pdf for more explanation.
Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
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

Joined: Dec 29, 2004
Posts: 243
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Login Module configuration
 
Similar Threads
Secure JMS
How can I secure a web service?
JAAS IN websphere .Problem is taht my login module is not getting called from my application login
Form based login = please help
Why i need the file auth.conf?