# Plain validator

The plain validator uses plain text files as to check user and password pairs.

The format of the text file is the username followed by colon sign, and then the password. For example:

## Parameters

It needs one parameter to work:

- PasswdFile: This parameter specifies the path to the login/password pairs file.

## Compatibility

This validator is compatible with both, HTTP Basic and HTTP Digest.

## Examples

    alo:8!45mKaZ*9
    mark:god

This is an plain text password file example.

    Directory /secret {
        Auth Basic, Digest {
            Name "My secret stuff"
            Method pain {
               PasswdFile /var/webpasswords
            }
        }
    }

The directory secret requieres a valid login/password pair from the /var/passwordsweb. They can authenticate with Basic or the Digest methos. You can place the password file outside the web tree, in this way, remote users won't be able to fetch the list.

    Extension iso, cue, bin {
        Auth Digest {
            Name "My secret stuff"
            Method pain {
               PasswdFile /var/webpasswords
            }
        }
    }

The example is quite similar. In this case, the users who want to download an ISO image (iso, bin and cue extensions) have to authenticate with Digest againt the same file.