openldap: move config-handling functions after ldap_read_host()