From e2fc0433de38c322ce46ad250bc0f0f03e7710c8 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Thu, 24 Oct 2024 06:43:08 -0400 Subject: add icinga --- scripts/hostclass/dav_server | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/hostclass/dav_server') diff --git a/scripts/hostclass/dav_server b/scripts/hostclass/dav_server index b7391bd..a69c072 100644 --- a/scripts/hostclass/dav_server +++ b/scripts/hostclass/dav_server @@ -10,10 +10,10 @@ : ${davical_awl_repo:='https://gitlab.com/davical-project/awl.git'} : ${davical_awl_branch:='master'} +davical_dn="uid=${davical_username},${robots_basedn}" davical_repo_dir=/usr/local/www/davical davical_awl_repo_dir=/usr/local/share/awl davical_webroot="${davical_repo_dir}/htdocs" - davical_https_cert="${nginx_conf_dir}/davical.crt" davical_https_key="${nginx_conf_dir}/davical.key" davical_https_cacert="${nginx_conf_dir}/davical.ca.crt" @@ -55,7 +55,11 @@ git -C "$davical_awl_repo_dir" pull --ff-only git -C "$davical_awl_repo_dir" switch "$davical_awl_branch" # Create davical principal and keytab. -add_principal -nokey -x "containerdn=${robots_basedn}" "$davical_username" +ldap_add "$davical_dn" <