Skip to content

Commit

Permalink
Update slapd.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrl39 authored May 25, 2024
1 parent ccb6e32 commit e6a6083
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/scripts/slapd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ echo "slapd slapd/dump_database select when needed" | sudo debconf-set-selection
# Establecer el frontend de debconf a no interactivo
export DEBIAN_FRONTEND=noninteractive

# Actualizar la lista de paquetes e instalar slapd y ldap-utils
# Actualizar la lista de paquetes
sudo apt update

# Instalar net-tools
sudo apt install net-tools -y

# Instalar slapd y ldap-utils
sudo DEBIAN_FRONTEND=noninteractive apt install slapd ldap-utils -y

# Verificar el estado del servicio slapd
sudo systemctl status slapd

# Verificar los puertos en los que slapd está escuchando
sudo netstat -tulnp | grep slapd

# Realizar una consulta LDAP simple para verificar el funcionamiento
ldapsearch -x -H ldap://localhost -b dc=doncom,dc=com

0 comments on commit e6a6083

Please sign in to comment.