generated from alice-meta-packages/alice-meta-template
This commit is contained in:
1 parent
16f09815d8
commit
0a03be9c66
2 files changed
+15
-5
No files matched your search
+9
-5
@@ -1,6 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
# Script executado pós instalação
|
. /usr/share/debconf/confmodule
|
||||||
# systemctl restart nscd
|
|
||||||
PASS=$(whiptail --passwordbox "Senha do LDAP" 10 50)
|
db_get alice-auth/ldap-bind-password
|
||||||
sed -i 's/BINDPW/$PASS/' /etc/sssd/sssd.conf
|
LDAP_BIND_PASSWORD="$RET"
|
||||||
|
CONFIG=/etc/sssd/sssd.conf
|
||||||
|
|
||||||
|
sed -i "s/ldap_default_authtok =.*/ldap_default_authtok = $LDAP_BIND_PASSWORD/" $CONFIG
|
||||||
Reference in new issue
Block a user