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
Merge branch '4165_ldap_hash-rebased'