Skip to content

Instantly share code, notes, and snippets.

attributetype ( 1.2.840.113556.1.6.18.1.313 NAME 'msSFU30Password'
EQUALITY caseExactIA5Match
SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' SINGLE-VALUE )
attributetype ( 1.2.840.113556.1.6.18.1.326 NAME 'msSFU30MemberUid'
EQUALITY caseExactIA5Match
SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
attributetype ( 1.2.840.113556.1.6.18.1.346 NAME 'msSFU30PosixMember'
SYNTAX '1.3.6.1.4.1.1466.115.121.1.12' )
#!/bin/sh
### BEGIN INIT INFO
# Provides: slapd
# Required-Start: $remote_fs $network $syslog
# Required-Stop: $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: OpenLDAP standalone server (Lightweight Directory Access Protocol)
### END INIT INFO
# Location of the slapd configuration to use. If using the cn=config
# backend to store configuration in LDIF, set this variable to the
# directory containing the cn=config data; otherwise set it to the location
# of your slapd.conf file. If empty, use the compiled-in default
# (/etc/ldap/slapd.d).
SLAPD_CONF=/opt/openldap/etc/openldap/slapd.conf
# System account to run the slapd server under. If empty the server
# will run as root.
SLAPD_USER="openldap"
# How obsessive sysadmins install Qimo for their four year olds at home:
class qimo {
# # Qimo lives in the universe repository - activate if necessary, assuming @apt::repo["universe"]
# # elsewhere in Puppet config (uncomment require in Package["qimo-session"] as well):
# realize Apt::Repo["universe"]
package { "qimo-session":
ensure => present,
# require => Apt::Repo["universe"],
# Small define to expand a tarball at a location; assumes File[$title]
# definition of tarball and installation of pax:
define baselayout::drop_tarball($dest, $dir_name, $dir_sub='') {
# $dest: cwd in which expansion is done
# $dir_name: name of top level directory created in $dest
# $dir_sub: regexp to -s for pax - not supported for .zip archives
if ($dir_sub) {
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
APPENDDEF(`confENVDEF', `-UNIS')
APPENDDEF(`confENVDEF',`-DSTARTTLS')
APPENDDEF(`confLIBS', `-lssl -lcrypto')
APPENDDEF(`confENVDEF', `-D_FFR_TLS_1')
@anl
anl / purge-vm.sh
Last active October 13, 2015 21:07
Purge Ubuntu VM prior to imaging on SmartOS; tested with 12.04.
#!/bin/bash
# This script assumes:
# 1) Joyent's vmtools are installed; and
# 2) /etc/rc.local contains:
# /usr/sbin/dpkg-reconfigure openssh-server
# or the equivalent.
/usr/bin/apt-get update
/usr/bin/apt-get -y dist-upgrade
# Undocumented, unsupported means to compress GitHub Enterprise logs:
yes | ghe-unlock
sudo -u git gzip /var/log/github/unicorn.log.1
ghe-lock
@anl
anl / streisand_prereqs.sh
Last active July 1, 2016 18:23
Installing streisand prereqs in a virtualenv on OS X
brew install gmp
brew install libffi
virtualenv ~/virtualenvs/streisand
. ~/virtualenvs/streisand/bin/activate
pip install -U pip
pip install -U setuptools
env "CFLAGS=-I/usr/local/include -L/usr/local/lib" pip install pycrypto
pip install ansible