Last active
August 29, 2015 14:04
-
-
Save worldwise001/b3f0daa20057dcd664cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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