Summary
The module mod_as_auth provides user authentication using iSeries™ system profiles, Internet users (through validation lists), or LDAP users.
Directives
Module: mod_as_auth | |
Syntax: AsAuthAuthoritative On | Off | |
Default: AsAuthAuthoritative On | |
Context: | |
Override: none | |
Origin: | |
Example: AsAuthAuthoritative Off |
Setting the AsAuthAuthoritative directive explicitly to off allows for both authentication and authorization to be passed on to lower level modules (if there is no userid or rule matching the supplied userid).
If a userid appears in an authentication realm other than those supported by the iSeries (for example, System Userid), or if a valid Require directive applies to more than one module, the first module verifies the credentials and no access is passed on regardless of the AsAuthAuthoritative setting.
Module: mod_as_auth | |
Syntax: GroupFile filename | |
Default: none | |
Context: directory | |
Override: none | |
Origin: iSeries | |
Example: GroupFile /docs/restrict.group |
The GroupFile directive sets the name of a GroupFile to use for a protection setup. Group files are used to classify users into various groups. A protection setup can use groups on limit directives. If a protected directory contains an ACL file, the rules in the ACL file can also use the groups that you define in the group file.
To work correctly this directive must be accompanied by PasswdFile, AuthType, and Require.
Module: mod_as_auth | |
Syntax: PasswdFile passfile [passfile passfile ...] | |
Default: none | |
Context: directory | |
Override: none | |
Origin: iSeries | |
Example: PasswdFile %%SYSTEM%% | |
Example: PasswdFile "QUSRSYS/MY_USERS QGPL/DOC_USERS" |
The PasswdFile directive specifies where the passwords (or certificates) are stored for authentication.
- Parameter: passfile
- The different values supported by the passfile parameter value are:
This directive may be configured multiple times in a container. The directives are processed from the first to the last occurrence.
To work correctly this directive must be accompanied by AuthType, AuthName, and Require.
Module: mod_as_auth | |
Syntax: Userid user-profile | %%SERVER%% | %%CLIENT%% | |
Default: none | |
Context: directory | |
Override: none | |
Origin: iSeries | |
Example: UserID WEBUSER | |
Example: UserID %%SERVER%% | |
Example: UserID %%CLIENT%% |
The UserID directive specifies the iSeries system profile to the server. For a protected resource (one for which Protection directives are defined), the UserID directive specifies which iSeries system profile the server temporarily swaps to while serving that resource. The directive must be a valid user profile.
The profile that issued the STRTCPSVR command to start HTTP Server (powered by Apache) must have *USE authority to the profile specified on all of the UserID directives and other directives. All UserID directives (and directives specified for a protected resource) are verified during startup. If any UserID directive, or any other directive, does not satisfy the rules, the server instance does not start and a message is sent to the user's interactive joblog.
When HTTP Server (powered by Apache) is running under the QTMHHTTP profile (the QTMHHTTP profile is the default) and a UserID directive is not in effect, the server switches to the QTMHHTP1 profile before starting a CGI program. However, when a CGI program is running on servers where the UserID directive is in effect or within a protection setup where the UserID directive has been specified, the program is run under the specified profile, unless the profile is QTMHHTTP. In which case, QTMHHTP1 is used. If the profile does not have authority to the specified program, the request is rejected.
There are two special values you can use on the UserID directive. Entering %%SERVER%% uses the default profile QTMHHTTP unless a protection setup has a different UserID specified. Entering %%CLIENT%% causes the server to challenge the client on each and every request for a user ID and password.
See also ServerUserID.
To work correctly, this directive must be accompanied by the PasswdFile, AuthType, AuthName, and Require directives.