code: def find(self, username):
          
          filter = ['(uid={})'.format(username)]
          results = self.client.search(filter)
  
          if len(results) < 1:
              raise ldap_tools.exceptions.NoUserFound(
                  'User ({}) not found'.format(username))
              return  # pragma: no cover
          elif len(results) > 1:
              raise ldap_tools.exceptions.TooManyResults(
                  'Multiple users found. Please narrow your search.')
              return  # pragma: no cover
          else:
              return results
docs: Find user with given username.
  
          Args:
              username Username of the user to search for
  
          Raises:
              ldap_tools.exceptions.NoUserFound: No users returned by LDAP
              ldap_tools.exceptions.TooManyResults:
                  Multiple users returned by LDAP