diff --git a/DEBIAN/control b/DEBIAN/control index 70cc77a..21c8eec 100644 --- a/DEBIAN/control +++ b/DEBIAN/control @@ -1,8 +1,8 @@ -Package: NOME DO PACOTE +Package: alice-auth Version: 1.0 Section: admin Priority: optional Architecture: amd64 -Depends: DEPENDENCIAS -Maintainer: SEU NOME -Description: META-PACOTE EXEMPLO +Depends: libpam-ldapd, nslcd +Maintainer: Carneiro +Description: Meta-pacote contendo as configs do ldap diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 8a532bb..d7a7589 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,3 +1,4 @@ #!/bin/sh # Script executado pós instalação +systemctl restart nscd diff --git a/DEBIAN/preinst b/DEBIAN/preinst new file mode 100755 index 0000000..5427ada --- /dev/null +++ b/DEBIAN/preinst @@ -0,0 +1,19 @@ +#!/bin/sh + +# Script executado pre instalação + +# Preseed settings for libpam-ldapd +echo " libpam-ldapd libpam-ldapd/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 + libpam-ldapd libpam-ldapd/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br + libpam-ldapd libpam-ldapd/ldapns/ldap_version select 3 + libpam-ldapd shared/ldapns/ldap-server string ldaps://alice.ufsj.edu.br:33001 + libpam-ldapd shared/ldapns/base-dn string dc=alice,dc=ufsj,dc=edu,dc=br" | debconf-set-selections + +# Preseed settings for nslcd +echo " nslcd nslcd/ldap-uris string ldaps://alice.ufsj.edu.br:33001 + nslcd nslcd/ldap-base string dc=alice,dc=ufsj,dc=edu,dc=br + nslcd nslcd/ldap-auth-type select simple + nslcd nslcd/ldap-starttls boolean false + nslcd nslcd/ldap-version select 3 + nslcd nslcd/ldap-sasl-mech select none + nslcd nslcd/ldap-reqcert select demand" | debconf-set-selections