Edgewall Software

Changes between Version 4 and Version 5 of 0.12/TracStandalone


Ignore:
Timestamp:
Apr 5, 2010, 10:36:30 PM (14 years ago)
Author:
Christian Boos
Comment:

better use htpasswd -m on all platforms

Legend:

Unmodified
Added
Removed
Modified
  • 0.12/TracStandalone

    v4 v5  
    168168}}}
    169169
    170 {{{#!div style="background:#efe"
    171 Testing on or confirmation for *nix required in below paragraph.
    172 
    173 The -m option referred to from httpasswd is ...
    174      -m   Use Apache's  modified  MD5  algorithm  for  passwords.
    175           Passwords  encrypted with this algorithm are transport-
    176           able to any platform (Windows, Unix, BeOS,  et  cetera)
    177           running  Apache  1.3.9  or  later.  On Windows and TPF,
    178           this flag is the default.
    179 }}}
    180 
    181 Note: If you would like to use --basic-auth you need to use htpasswd tool from apache server to generate .htpasswd file. The remaining part is similar but make sure to use empty realm (i.e. coma after path). When using on Windows make sure to use -m option for it (did not tested it on *nix, so not sure if that is the case there).  If you do not have Apache, [trac:source:/tags/trac-0.11b2/contrib/htpasswd.py htpasswd.py] may help.  (Note that it requires a `crypt` or `fcrypt` module; see the source comments for details.)
     170
     171Note: If you would like to use --basic-auth you need to use htpasswd tool from apache server to generate .htpasswd file. The remaining part is similar but make sure to use empty realm (i.e. coma after path). Make sure to use -m option for it.  If you do not have Apache, [trac:source:/tags/trac-0.11/contrib/htpasswd.py htpasswd.py] may help.  (Note that it requires a `crypt` or `fcrypt` module; see the source comments for details.)
    182172
    183173It is possible to use md5sum utility to generate digest-password file using such method: