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.

Version 1.3 last modified by Alex Jacobs on 02/03/2006 at 23:18

Comments 0

No comments for this document

Attachments 0

No attachments for this document
 

Creator: Charles Gay on 2006/02/09 14:45
jGuard team copyright 2004-2007
1.1.1