#!/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