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/bitwarden_server | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/hostclass/bitwarden_server') diff --git a/scripts/hostclass/bitwarden_server b/scripts/hostclass/bitwarden_server index 1f025fe..ff67c3e 100644 --- a/scripts/hostclass/bitwarden_server +++ b/scripts/hostclass/bitwarden_server @@ -5,6 +5,7 @@ : ${vaultwarden_dbhost:="$postgres_host"} : ${vaultwarden_fqdn:="$fqdn"} +vaultwarden_dn="uid=${vaultwarden_username},${robots_basedn}" vaultwarden_local_username=$nginx_user vaultwarden_https_cert="${nginx_conf_dir}/vaultwarden.crt" vaultwarden_https_key="${nginx_conf_dir}/vaultwarden.key" @@ -17,7 +18,11 @@ pkg install -y \ nginx # Create vaultwarden principal and keytab. -add_principal -nokey -x "containerdn=${robots_basedn}" "$vaultwarden_username" +ldap_add "$vaultwarden_dn" <