Welcome to the jGuard's wiki » Welcome on your Wiki » General section » Configure the 'jGuard.loginScheme' file

Configure the 'jGuard.loginScheme' file

Last modified by RaffaelloPelagalli on 2006/02/06 14:21

Configure the 'jGuard.loginScheme' file

This file,located under the

${java.home}/lib/security/
directory, is the authentication configuration repository settings, for webapps hosted on the server.

It respects the 'Policy File Syntax' of the SUN policy implementation. it contains some entries, which correspond each one to an applicationName (formerly, the name of your webapp). in the above example, there is two different webapps configurations ('myApplication', and 'anotherApplication').

each webapp has got his own pluggable authentication mechanism, specified by the loginModule(s), the flag, and the moduleOptions. to have more informations about the 'Policy File Synthax', you could look at the javadoc of the Configuration class.

myApplication{
  net.sf.jguard.loginmodules.OracleLoginModule required
     secured="false"
     applicationPassword="mystery"
     debug="true"
     digestAlgorithm="MD5"
     authenticationUrl="jdbc:postgresql://localhost:5432/DIABOLO"
     authenticationLogin="Charles"
     authenticationPassword="Charles"
     authenticationDriver="org.postgresql.Driver"
     authenticationDAOImpl="net.sf.jboard.model.reg.dao.AuthenticationHibernateDAO"
     userImpl="net.sf.jguard.authentication.UserImpl"
     roleImpl="net.sf.jguard.authentication.UserRoleImpl"
     adminUserLogin="admin"
     adminUserPassword="admin"
     guestUserLogin="guest"
     guestUserPassword="guest"
     hibernateConfigFile="/authentication.cfg.xml"
     autoInsert="true";
};
anotherApplication{
  net.sf.jguard.loginmodules.XmlLoginModule required
     secured="true"
     applicationPassword="zap"
     debug="true"
     fileLocation="${java.home}${/}lib${/}security${/}jGuardUsersRoles.xml";
};

Each loginModule has got his own specific options.

Tags:
Created by diabolo512 on 2005/09/29 14:15

jGuard team copyright 2004-2009
3.1.1