summaryrefslogtreecommitdiff
path: root/templates/vhosts/webdav/webdav.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/webdav/webdav.erb')
-rw-r--r--templates/vhosts/webdav/webdav.erb14
1 files changed, 2 insertions, 12 deletions
diff --git a/templates/vhosts/webdav/webdav.erb b/templates/vhosts/webdav/webdav.erb
index 30d76e3..eb12e36 100644
--- a/templates/vhosts/webdav/webdav.erb
+++ b/templates/vhosts/webdav/webdav.erb
@@ -45,12 +45,7 @@
Options Indexes
<%- end -%>
- <%- unless htpasswd_file.to_s == 'absent' then -%>
- AuthType Basic
- AuthName "Access fuer <%= servername %>"
- AuthUserFile <%= real_htpasswd_path %>
- require valid-user
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/authentication.erb') %>
<%- if ldap_auth.to_s == 'true' then -%>
Include include.d/ldap_auth.inc
<%- unless ldap_user.to_s == 'any' -%>
@@ -111,12 +106,7 @@
Options Indexes
<%- end -%>
- <%- unless htpasswd_file.to_s == 'absent' then -%>
- AuthType Basic
- AuthName "Access fuer <%= servername %>"
- AuthUserFile <%= real_htpasswd_path %>
- require valid-user
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/authentication.erb') %>
<%- if ldap_auth.to_s == 'true' then -%>
Include include.d/ldap_auth.inc
<%- unless ldap_user.to_s == 'any' -%>