JdbcLoginModule

Last modified by RaffaelloPelagalli on 2006/11/23 17:44

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.

Tags:
Created by diabolo512 on 2006/05/22 14:53

jGuard team copyright 2004-2009
3.1.1