Access Permissions - Tutorial
Overview
To enable protection on the directories you wish to protect you need to create a text file named DAFAUTH.INI in each directory you wish to secure.
DAFAUTH.INI syntax
The syntax of DAFAUTH.INI file is:
[<section name1>]
<entry1>=enable or disable
<entry2>=enable or disable
[<section name2>]
<entry1>=enable or disable
<entry2>=enable or disable
<section name> can be one of the following:
Section [PreAuthentication]:
This section is processed before any other section.
Section [<file name>]:
This section define permissions for the file <file name>.
Section [Directory]:
This section defines the default permission for every file in the
directory for which no specific permissions are defined in DAFAUTH.INI.
<entry> can be one of the following :
<Group name>:
This may be any group defined in the user list.
<User name>:
This may be any user defined in user list file.
Everybody:
All web users (authenticated or not).
Anonymous:
Anonymous WEB user.
Authenticated:
A username from the user list file.
default:
Last entry called for the current section.
DAFAUTH.INI files samples
In most cases, there are several ways to setup a unique access configuration for a directory. The following samples show only one unique access for each configuration.
Sequence followed to process authentications
If there IS NOT a file DAFAUTH.INI in the directory:
Access is GRANTED for every request for all groups.
If there IS a file DAFAUTH.INI in the directory:
- The search stops after the first explicit right (enable or disable) is found.
- The order in which sections and entries in DAFAUTH.INI are listed does not make a difference.
- If no explicit right (enable or disable) is found, access is denied.
Order followed to search for rights:
- Section [PreAuthentication],
- Section [<file requested by the WEB user>] (the long file name must be used)
- Section [Directory]
For each section, entries are sought in the following order:
- Everybody
- Anonymous
- Authenticated
- Groups to which the current WEB user belongs
- The WEB user itself
- DAFAccount
- Default
Philippe Tenenhaus
Version: 1.0 - 09/22/98