comparison mod_auth_ha1.wiki @ 469:da42de0ae310

Created wiki page through web user interface. Sorry Link Mauve.
author MWild1@gmail.com
date Sat, 26 Jul 2014 21:51:40 +0000
parents
children 8fc767861b1e
comparison
equal deleted inserted replaced
468:eb771cbbf410 469:da42de0ae310
1 #summary Authentication module for 'HA1' hashed credentials in a text file, as used by reTurnServer
2 #labels Stage-Beta,Type-Auth
3
4 = Introduction =
5
6 This module authenticates users against hashed credentials stored in a plain text file. The format is the same as that used by reTurnServer.
7
8 = Configuration =
9
10 || *Name* || *Default* || *Description* ||
11 || auth_ha1_file || auth.txt || ||
12
13 = File Format =
14
15 The file format is text, with one user per line. Each line is broken into four fields separated by colons (':'):
16
17 {{{
18 username:ha1:host:status
19 }}}
20
21 || *Field* || *Description* ||
22 ||username||The user's login name||
23 ||ha1||An MD5 hash of "username:host:password"||
24 ||host||The XMPP hostname||
25 ||status||The status of the account. Prosody expects this to be just the text "authorized"||
26
27 More info can be found [https://github.com/resiprocate/resiprocate/blob/master/reTurn/users.txt here].
28
29 == Example ==
30
31 {{{
32 john:2a236a1a68765361c64da3b502d4e71c:example.com:authorized
33 mary:4ed7cf9cbe81e02dbfb814de6f84edf1:example.com:authorized
34 charlie:83002e42eb4515ec0070489339f2114c:example.org:authorized
35 }}}
36
37 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:
38
39 {{{
40 echo -n "john:example.com:hunter2" | md5sum -
41 }}}
42
43 = Compatibility =
44 ||0.9||Works||
45 ||0.10||Works||