alice-auth/DEBIAN/postinst

15 lines
256 B
Plaintext
Raw Normal View History

2024-11-17 20:55:17 -03:00
#!/bin/bash
set -e
. /usr/share/debconf/confmodule
db_get alice-auth/ldap-bind-password
2024-11-17 21:02:49 -03:00
SSSD_CONFIG=/etc/sssd/sssd.conf
sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $RET/" $SSSD_CONFIG
chmod 600 $SSSD_CONFIG
chown root:root $SSSD_CONFIG