diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 992bea7..fdbab0c 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,10 +1,11 @@ #!/bin/bash + set -e . /usr/share/debconf/confmodule db_get alice-auth/ldap-bind-password -LDAP_BIND_PASSWORD="$RET" CONFIG=/etc/sssd/sssd.conf -sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $LDAP_BIND_PASSWORD/" $CONFIG +sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $CONFIG +db_go || true diff --git a/DEBIAN/templates b/DEBIAN/templates index 631d606..12a69b3 100644 --- a/DEBIAN/templates +++ b/DEBIAN/templates @@ -1,6 +1,5 @@ Template: alice-auth/ldap-bind-password Type: password -Default: Description: Digite a senha do LDAP. Senha do user Alice.