Modify search.filter only if defined
Stringify entry.object
Do not modify dn for authMode != 1