The basic-ncsa function verifies authorization information sent by the client against a database. The Authorization header is sent as part of the basic server authorization scheme. This function is usually used with the PathCheck-class function require-auth.
The following table describes parameters for the basic-ncsa function.
Table 7–2 basic-ncsa Parameters
Parameter |
Description |
---|---|
Specifies the type of authorization to be used. The values can be basic, digest, or ssl. The default value is basic. |
|
(Optional) Specifies the full path and base file name of the user database in the native format of the server. The native format is a system DBM file, which is a hashed file format allowing instantaneous access to billions of users. If you use this parameter, do not use the userfile parameter. |
|
(Optional) Specifies the full path name of the user database in the NCSA-style HTTPD user file format. This format consists of lines using the format name:password, where password is encrypted. If you use this parameter, do not use dbm. |
|
(Optional) Specifies the NCSA-style HTTPD group file to be used. Each line of a group file consists of group:user1 user2 ... userN where each user name is separated by spaces. |
|
bucket |
(Optional) Common to all obj.conf functions. Adds a bucket to monitor performance. For more information, see The bucket Parameter. |
AuthTrans fn="basic-ncsa" auth-type="basic" dbm="/sun/server7/userdb/rs" PathCheck fn="require-auth" auth-type="basic" realm="Marketing Plans" AuthTrans fn="basic-ncsa" auth-type="basic" userfile="/sun/server7/.htpasswd" grpfile="/sun/server7/.grpfile" PathCheck fn="require-auth" auth-type="basic" realm="Marketing Plans"