Skip to content

Instantly share code, notes, and snippets.

View dpishchukhin's full-sized avatar

Dmytro Pishchukhin dpishchukhin

View GitHub Profile
@dpishchukhin
dpishchukhin / addUser.sh
Created May 16, 2014 11:57 — forked from lemonlatte/addUser.sh
debian slapd install. no interaction
#!/bin/sh
dn='dc=math,dc=nccu,dc=edu,dc=tw'
username='jim.yeh'
uid='jim.yeh'
gid='student'
cat << EOF > user_example.ldif
dn: cn=$username,ou=users,ou=login,$dn