redid LDAP testing with a much better implementation.