diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-24 06:43:08 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-24 06:43:08 -0400 |
commit | e2fc0433de38c322ce46ad250bc0f0f03e7710c8 (patch) | |
tree | f04f079ed745f0c0350af93adf6491bbfec1cd13 /scripts/hostclass/dav_server | |
parent | 393adb9a95913e1658afe3243e4a0498dced9090 (diff) | |
download | infrastructure-e2fc0433de38c322ce46ad250bc0f0f03e7710c8.tar.gz |
add icinga
Diffstat (limited to 'scripts/hostclass/dav_server')
-rw-r--r-- | scripts/hostclass/dav_server | 8 |
1 files changed, 6 insertions, 2 deletions
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" <<EOF +objectClass: account +uid: ${davical_username} +EOF +add_principal -nokey -x "dn=${davical_dn}" "$davical_username" ktadd -k "$davical_client_keytab" "$davical_username" chgrp "$nginx_user" "$davical_client_keytab" |