docs: def lookup_id(self, group):
          """
          Lookup GID for the given group.
  
          Args:
              group: Name of group whose ID needs to be looked up
  
          Returns:
              A bytestring representation of the group ID (gid)
              for the group specified
  
          Raises:
              ldap_tools.exceptions.NoGroupsFound:
                  No Groups were returned by LDAP
  
              ldap_tools.exceptions.TooManyResults:
                  More than one group was returned by LDAP
  
          """
          filter = ["(cn={})".format(group), "(objectclass=posixGroup)"]
          results = self.client.search(filter, ['gidNumber'])
  
          if len(results) < 1:
              raise ldap_tools.exceptions.NoGroupsFound(
                  'No Groups Returned by LDAP')
          elif len(results) > 1:
              raise ldap_tools.exceptions.TooManyResults(
                  'Multiple groups found. Please narrow your search.')
          else:
              return results[0].gidNumber.value