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. +