rework LDAP host parsing code again to deal with multiple hosts closes #859