alice-auth/DEBIAN/postinst

11 lines
232 B
Plaintext
Raw Normal View History

2024-11-17 19:49:50 -03:00
#!/bin/bash
set -e
2024-09-09 15:32:13 -03:00
2024-11-17 19:49:50 -03:00
. /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