From 16f09815d83ada50e5b4b5918a1083b17d44fe84 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Sun, 17 Nov 2024 19:36:07 -0300 Subject: [PATCH] change deps and postinst --- DEBIAN/control | 2 +- DEBIAN/postinst | 4 +++- DEBIAN/preinst | 18 +++++++++--------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/DEBIAN/control b/DEBIAN/control index 21c8eec..c6648d4 100644 --- a/DEBIAN/control +++ b/DEBIAN/control @@ -3,6 +3,6 @@ Version: 1.0 Section: admin Priority: optional Architecture: amd64 -Depends: libpam-ldapd, nslcd +Depends: libnss-sss Maintainer: Carneiro Description: Meta-pacote contendo as configs do ldap diff --git a/DEBIAN/postinst b/DEBIAN/postinst index d7a7589..44a85dc 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,4 +1,6 @@ #!/bin/sh # Script executado pós instalação -systemctl restart nscd +# systemctl restart nscd +PASS=$(whiptail --passwordbox "Senha do LDAP" 10 50) +sed -i 's/BINDPW/$PASS/' /etc/sssd/sssd.conf diff --git a/DEBIAN/preinst b/DEBIAN/preinst index 1835e8d..10941f8 100755 --- a/DEBIAN/preinst +++ b/DEBIAN/preinst @@ -1,11 +1,11 @@ #!/bin/sh -echo " -nslcd nslcd/ldap-uris string ldaps://alice.ufsj.edu.br:33004 -nslcd nslcd/ldap-base string dc=alice,dc=ufsj -nslcd nslcd/ldap-binddn string cn=alice,dc=alice,dc=ufsj -nslcd nslcd/ldap-auth-type select simple -nslcd nslcd/ldap-version select 3 -nslcd nslcd/ldap-reqcert select demand -libnss-ldapd libnss-ldapd/nsswitch multiselect passwd, group, shadow, hosts, automount -" | debconf-set-selections \ No newline at end of file +# echo " +# nslcd nslcd/ldap-uris string ldaps://alice.ufsj.edu.br:33004 +# nslcd nslcd/ldap-base string dc=alice,dc=ufsj +# nslcd nslcd/ldap-binddn string cn=alice,dc=alice,dc=ufsj +# nslcd nslcd/ldap-auth-type select simple +# nslcd nslcd/ldap-version select 3 +# nslcd nslcd/ldap-reqcert select demand +# libnss-ldapd libnss-ldapd/nsswitch multiselect passwd, group, shadow, hosts, automount +# " | debconf-set-selections