Welcome to the jGuard's wiki » jGuard Documentation » Configure the 'jGuard.loginScheme' file

Configure the 'jGuard.loginScheme' file

Last modified by RaffaelloPelagalli on 2006/03/02 23:18

Configure the 'jGuard.loginScheme' file

This file, located in 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 each correspond to an applicationName (your webapp name). In the above example, there are two different webapps configurations ('myApplication', and 'anotherApplication').

Each webapp has its own pluggable authentication mechanism, specified by the loginModule(s), the flag, and the moduleOptions. For more information about the 'Policy File Syntax', you could read the Configuration class javadoc.

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 its own specific options.

Tags:
Created by diabolo512 on 2006/02/09 14:45

jGuard team copyright 2004-2009
3.1.1