Create LdapService class for querying the ldap.