Skip to content

Instantly share code, notes, and snippets.

@worldwise001
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save worldwise001/b3f0daa20057dcd664cc to your computer and use it in GitHub Desktop.
Save worldwise001/b3f0daa20057dcd664cc to your computer and use it in GitHub Desktop.
#!/bin/bash
slapcat > dump.ldif
for i in {structuralObjectClass,entryUUID,creatorsName,createTimestamp,entryCSN,modifiersName,modifyTimestamp}; do
sed "/^$i/ d" dump.ldif > dump.new.ldif
mv dump.new.ldif dump.ldif
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment