From 07bb42ee56e306d1ca709891417a524e99465d8f Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Sun, 17 Nov 2024 20:55:17 -0300 Subject: [PATCH] add files back --- DEBIAN/config | 9 +++++++++ DEBIAN/postinst | 11 +++++++++++ DEBIAN/templates | 5 +++++ 3 files changed, 25 insertions(+) create mode 100755 DEBIAN/config create mode 100755 DEBIAN/postinst create mode 100644 DEBIAN/templates diff --git a/DEBIAN/config b/DEBIAN/config new file mode 100755 index 0000000..a5a7bf9 --- /dev/null +++ b/DEBIAN/config @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +. /usr/share/debconf/confmodule + +db_input high alice-auth/ldap-bind-password || true +db_go + +exit 0 diff --git a/DEBIAN/postinst b/DEBIAN/postinst new file mode 100755 index 0000000..f5c9296 --- /dev/null +++ b/DEBIAN/postinst @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +. /usr/share/debconf/confmodule + +db_get alice-auth/ldap-bind-password + +echo $RET + +sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" /etc/sssd/sssd.conf diff --git a/DEBIAN/templates b/DEBIAN/templates new file mode 100644 index 0000000..12a69b3 --- /dev/null +++ b/DEBIAN/templates @@ -0,0 +1,5 @@ +Template: alice-auth/ldap-bind-password +Type: password +Description: Digite a senha do LDAP. + Senha do user Alice. +