JdbcLoginModule

Description

This loginModule allows a database-based authentication for your web application.

Parameters

namemandatoryvaluesdescriptionexample
debugnotrue or falseThis optional parameter, when set to true, activates the debug mode (providing more logs to easily detect misconfiguration). 

The configuration already defined in AuthenticationManager is reused to establish connections in loginmodules. so, JdbcLoginmodule uses JdbcAuthenticationManager configuration to establish database connections.

usual configuration in the web.xml file

....
....
<loginModule>
	<name>net.sf.jguard.authentication.loginmodules.JdbcLoginModule</name>
	<flag>REQUIRED</flag>
	<loginModuleOptions>
		<option>
			<name>debug</name>
			<value>false</value>
		</option>
	</loginModuleOptions>
</loginModule>
....
....

jGuard.loginScheme example (advanced configuration)

Below is an appConfigurationEntry example of a webapp configured with a XmlLoginModule.

myApplication{

net.sf.jguard.loginmodules.JdbcLoginModule required debug="true";

};

We recommend placing jGuard.loginScheme file in your ${java.home}/lib$/security/, to group all security files in one place.

Version 1.6 last modified by Alex Jacobs on 23/11/2006 at 17:44

Comments 0

No comments for this document

Attachments 0

No attachments for this document
 

Creator: Charles Gay on 2006/05/22 14:53
jGuard team copyright 2004-2007
1.1.1