Add LDIF export script and helper