mod_authn_anon

overview

mod_authn_anon module allows user to be authenticated with userID anonymous and a password being his email address. Email addresses may be logged.

Quick start

Sample configuration to enable anonymous authentication for valid users with email verification and logging turned on:

AuthType Basic
AuthName anonymous-area
AuthBasicProvider anon
Require valid-user

Anonymous john
Anonymous_LogEmail On
Anonymous_MustGiveEmail On
Anonymous_NoUserID Off
Anonymous_VerifyEmail On

Related articles and topics

Directives

Name Context Description
Anonymous S V D .h specifies userIDs that are allowed access without password verification
Anonymous_LogEmail S V D .h sets whether the password entered will be logged in the error log
Anonymous_MustGiveEmail S V D .h specifies whether blank passwords are allowed
Anonymous_NoUserID S V D .h specifies whether the userID field may be empty
Anonymous_VerifyEmail S V D .h specifies whether to check the password field for a correctly formatted email address

Anonymous

Anonymous directive allows to specify the list of one or more userIDs which are allowed access without password verification. The userIDs are space separated. It is allowed to use single or double quotation marks to enter userIDs with spaces.

It's recommended that anonymous is always one of allowed userIDs.

It is also possible to specify the userID as " * ". This will allow any userID to be accepted.

Syntax

Anonymous user [user] [...]

Note! Comparison is case insensitive.

Example

Anonymous anonymous "Not Registered" "Whatever" 

Anonymous_LogEmail

When Anonymous_LogEmail is set to On , the 'password' entered (which is normally an email address) is logged into the error log.

Syntax

Anonymous_LogEmail On|Off

Default

Anonymous_LogEmail On

Anonymous_MustGiveEmail

Anonymous_MustGiveEmail directive indicates whether the user must specify an email address as a password. This directive allows to prohibit blank passwords.

Syntax

Anonymous_MustGiveEmail On|Off

Default

Anonymous_MustGiveEmail On

Anonymous_NoUserID

When Anonymous_NoUserID is On , users may leave userID field empty.

Syntax

Anonymous_NoUserID On|Off

Default

Anonymous_NoUserID Off

Anonymous_VerifyEmail

When Anonymous_VerifyEmail is On , entered 'password' is verified for presence of at least one '@' and a '.' to prevent invalid email addresses.

Syntax

Anonymous_VerifyEmail On|Off

Default

Anonymous_VerifyEmail Off