Skip to content

Instantly share code, notes, and snippets.

@lomas969
lomas969 / ubuntu_ldap_auth.sh
Created November 5, 2019 23:19 — forked from ahamilton55/ubuntu_ldap_auth.sh
Ubuntu Client Auth over LDAP
#!/bin/bash
# Set environment vars for a silent install through apt-get
export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical
# Install the LDAP utilities
apt-get -y install libpam-ldap libnss-ldap nss-updatedb libnss-db
# Reset environment vars for apt-get
@lomas969
lomas969 / haproxy.cfg
Created November 2, 2019 00:42 — forked from T0MM0R/haproxy.cfg
Let's Encrypt Auto-Renewal script for HAProxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 2048