initial commit

This commit is contained in:
Carneiro 2024-09-09 15:43:23 -03:00
parent d75c0b5d15
commit 0798513d5f
3 changed files with 24 additions and 4 deletions

View File

@ -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 <seu@email.com>
Description: META-PACOTE EXEMPLO
Depends: libpam-ldapd, nslcd
Maintainer: Carneiro <alice@noreply.com>
Description: Meta-pacote contendo as configs do ldap

View File

@ -1,3 +1,4 @@
#!/bin/sh
# Script executado pós instalação
systemctl restart nscd

19
DEBIAN/preinst Executable file
View File

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