view @ 511:9cf5a22e30a1

allow_unencrypted_plain_auth is not required
date Fri, 03 Apr 2015 00:57:11 +0000
parents 8fc767861b1e
line wrap: on
line source

#summary Authentication module for 'HA1' hashed credentials in a text file, as used by reTurnServer
#labels Stage-Beta,Type-Auth

= Introduction =

This module authenticates users against hashed credentials stored in a plain text file. The format is the same as that used by reTurnServer.

= Configuration =

|| *Name* || *Default* || *Description* ||
|| auth_ha1_file || auth.txt || Path to the authentication file||

Prosody reads the auth file at startup and on reload (e.g. SIGHUP).

= File Format =

The file format is text, with one user per line. Each line is broken into four fields separated by colons (':'):


|| *Field* || *Description* ||
||username||The user's login name||
||ha1||An MD5 hash of "username:host:password"||
||host||The XMPP hostname||
||status||The status of the account. Prosody expects this to be just the text "authorized"||

More info can be found [ here].

== Example ==


Constructing the hashes can be done manually using any MD5 utility, such as md5sum. For example the user 'john' has the password 'hunter2', and his hash can be calculated like this:

echo -n "" | md5sum -

= Compatibility =