code: func (auth *AuthProxy) GetUserIDViaLDAP() (int64, *Error) {
  	query := &models.LoginUserQuery{
  		ReqContext: auth.ctx,
  		Username:   auth.header,
  	}
  
  	config := readLDAPConfig()
  	if len(config.Servers) == 0 {
  		return 0, newError("No LDAP servers available", nil)
  	}
  
  	for _, server := range config.Servers {
  		author := auth.LDAP(server)
  		if err := author.SyncUser(query); err != nil {
  			return 0, newError(err.Error(), nil)
  		}
  	}
  
  	return query.User.Id, nil
  }
docs: // GetUserIDViaLDAP gets user via LDAP request