Description: Cherokee is a flexible, very fast, lightweight Web server. It is implemented entirely in C, and has no dependencies beyond a standard C library. It is embeddable and extensible with plug-ins. It supports on-the-fly configuration by reading files or strings, TLS/SSL (via GNUTLS or OpenSSL), virtual hosts, authentication, cache friendly features, PHP, custom error management, and much more.
Keywords: cherokee web server httpd http

## Index → Modules → Validators

### Validator: PAM

The pam validator uses the Pluggable Authentication Module to validate the username/password combination.

#### Parameters

Users: You can restrict to some local system users

#### Compatibility

This validator is compatible with the basic scheme.

#### Example

Requires a valid user and password system pair to access the protected directory. It will be available for all local users, unless a restriction list is provided.

#### Notes

The PAM approach ensures a dynamic configuration for how the authentication is performed. This dynamic configuration must be specified. This means that a /etc/pam.d/cherokee file must define the connection between Cherokee and the pluggable authentication modules that perform the actual authentication tasks.

Cherokee’s installation procedure already takes care of the creation of such file (under /etc or whatever system configuration directory is used in your platform of choice). If you consistently fail to use the PAM validator, make sure that such configuration definitions are set.

Sample: /etc/pam.d/cherokee

    #
    # The PAM configuration file for Cherokee
    #

    account    required   pam_unix.so
    auth       required   pam_unix.so nullok
    auth       required   pam_env.so
    session    required   pam_unix.so