code: func (c *Conn) Search(filter string, attrs []string, sizeLimit int) ([]*ldap.Entry, error) {
  	search := ldap.NewSearchRequest(
  		c.Config.BaseDN,
  		ldap.ScopeWholeSubtree,
  		ldap.DerefAlways,
  		sizeLimit,
  		0,
  		false,
  		filter,
  		attrs,
  		nil,
  	)
  	result, err := c.Conn.Search(search)
  	if err != nil {
  		return nil, fmt.Errorf(`Search error "%s": %v`, filter, err)
  	}
  
  	return result.Entries, nil
  }
docs: //Search returns the entries for the given search criteria or an error if one occurred.