Skip to content

Instantly share code, notes, and snippets.

@czechbox
czechbox / setup-nss-ldapd.sh
Created January 27, 2017 22:21 — forked from shichao-an/setup-nss-ldapd.sh
Setup nss-ldapd (OpenLDAP client) with SSH access
#!/bin/bash
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=120
set -e
# Check Ubuntu release
[ "$(lsb_release -sc)" = "trusty" ] || {
echo 'This script should be run on Ubuntu 14.04.' >&2
exit 1
}