filter entries from an LDIF file