Skip to content

Instantly share code, notes, and snippets.

View grharry's full-sized avatar

Harry Lachanas grharry

View GitHub Profile
@grharry
grharry / schema2ldif.sh
Created April 20, 2017 13:44 — forked from markllama/schema2ldif.sh
Convert LDAP Schema to LDIF
#!/bin/bash
#
# Stolen from https://stuckinadoloop.wordpress.com/2011/04/14/script-to-convert-openldap-schema-files-to-ldif-format/
SCHEMAD=/etc/openldap/schema
SCHEMAS='dhcp.schema'
tmpd=`mktemp -d`
pushd ${tmpd} >>/dev/null