Test LDAP functionality