Skip to content

Instantly share code, notes, and snippets.

@grharry
grharry / schema2ldif.sh
Created Apr 20, 2017 — forked from markllama/schema2ldif.sh
Convert LDAP Schema to LDIF
View schema2ldif.sh
#!/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