refactor ldap config generated in unit tests
rename get_* methods to find_*
implement dao helper for generating ldap config
[fix #4165] do not custom encode ldap URIs