Add Ldap test code