change deps and postinst
Deploy Package / Explore-Gitea-Actions (push) Successful in 8s Details

This commit is contained in:
Carneiro 2024-11-17 19:36:07 -03:00
parent bb1f63d2be
commit 16f09815d8
3 changed files with 13 additions and 11 deletions

View File

@ -3,6 +3,6 @@ Version: 1.0
Section: admin
Priority: optional
Architecture: amd64
Depends: libpam-ldapd, nslcd
Depends: libnss-sss
Maintainer: Carneiro <alice@noreply.com>
Description: Meta-pacote contendo as configs do ldap

View File

@ -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

View File

@ -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
# 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