--- a/lib/Ius/Dav/Htpasswd.pm Mon Jul 18 17:03:15 2011 +0200
+++ b/lib/Ius/Dav/Htpasswd.pm Wed Jul 20 11:38:40 2011 +0200
@@ -36,7 +36,7 @@
use Exporter;
# set the version for version checking
- $VERSION = 0.1;
+ $VERSION = 0.2;
@ISA = qw(Exporter);
@EXPORT_OK = qw(readconfig mkpasswd useradd userdel userexpiry usage);
@@ -68,7 +68,7 @@
) or die 'Failed to read config!';
$conf->file($_)
for grep -e, map "$_/ius-dav-htpasswd.conf",
- qw(/etc/ius-dav-htpasswd /usr/local/etc/ius-dav-htpasswd ~/.ius-dav-htpasswd ./ius-dav-htpasswd);
+ qw(/etc/ius-dav-htpasswd /usr/local/etc/ius-dav-htpasswd ~/.ius-dav-htpasswd .);
return { $conf->varlist('.') };
}
@@ -139,7 +139,9 @@
AuthName "$user"
AuthUserFile "$htpasswd_file"
Require user $master_user $user
+ Options +Indexes
</Directory>
+# vi:ft=apache
EOC
close C;
@@ -288,13 +290,13 @@
=head1 FILES
-F</etc/dav-htpasswd.conf>
+F</etc/ius-dav-htpasswd/ius-dav-htpasswd.conf>
-F</usr/local/etc/dav-htpasswd.conf>
+F</usr/local/etc/ius-dav-htpasswd/ius-dav-htpasswd.conf>
-F<~/dav-htpasswd.conf>
+F<~/.ius-dav-htpasswd/ius-dav-htpasswd.conf>
-F<./dav-htpasswd.conf>
+F<./ius-dav-htpasswd.conf>
F</srv/dav>