1
# See bottom of file for license and copyright information
2
package Foswiki::Configure::Checkers::Htpasswd::Encoding;
3
use base 'Foswiki::Configure::Checker';
10
my $enc = $Foswiki::cfg{Htpasswd}{Encoding};
13
if ( $enc eq 'digest' ) {
14
$e .= $this->checkPerlModules(
15
name => 'Digest::MD5',
16
usage => "MD5 encoded passwords",
18
disposition => 'required'
21
elsif ( $enc eq 'sha1' ) {
22
$e .= $this->checkPerlModules(
23
name => 'MIME::Base64',
24
usage => "SHA1 password encoding",
26
disposition => 'required'
29
my $pe = $this->checkTreePerms( $Foswiki::cfg{Htpasswd}{FileName}, 'r' );
30
$e .= $this->ERROR($pe) if $pe;
37
# Foswiki - The Free and Open Source Wiki, http://foswiki.org/
39
# Copyright (C) 2008 Foswiki Contributors. All Rights Reserved.
40
# Foswiki Contributors are listed in the AUTHORS file in the root
41
# of this distribution. NOTE: Please extend that file, not this notice.
43
# Additional copyrights apply to some or all of the code in this
46
# Copyright (C) 2000-2006 TWiki Contributors. All Rights Reserved.
47
# TWiki Contributors are listed in the AUTHORS file in the root
48
# of this distribution. NOTE: Please extend that file, not this notice.
50
# This program is free software; you can redistribute it and/or
51
# modify it under the terms of the GNU General Public License
52
# as published by the Free Software Foundation; either version 2
53
# of the License, or (at your option) any later version. For
54
# more details read LICENSE in the root of this distribution.
56
# This program is distributed in the hope that it will be useful,
57
# but WITHOUT ANY WARRANTY; without even the implied warranty of
58
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
60
# As per the GPL, removal of this notice is prohibited.