muesli / pam-beacon

PAM module for multi-factor authentication with Bluetooth Devices & Beacons
MIT License
45 stars 6 forks source link

Field not found: Bonded #10

Open dgudim opened 1 year ago

dgudim commented 1 year ago

Does not work, running in terminal gives this:

DEBU[0000] Looking for beacons [50:50:A4:93:61:A9]...   
ERRO[0000] MapToStruct: Field not found: Bonded
PolarizedIons commented 10 months ago

same issue :( on NixOS 23.11

built using:

{ lib, stdenv, fetchFromGitHub, buildGoModule, pkgs }:

buildGoModule rec {
  pname = "pam_beacon";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "muesli";
    repo = "pam-beacon";
    rev = "52d058d40ea20f71099a5867867058ef1562efe1";
    sha256 = "016v3ngwgrpffh96ppplh4qx0gr7zcll9ar6pszyjrwamd463qvx";
  };

  vendorHash = "sha256-uraNVfax78bbekWssCcySTFM18cBfSlaOv0SNweOYm8=";

  buildInputs = with pkgs; [ linux-pam ];

  CGO_ENABLED = 1;

  ldflags = [
    "-linkmode external"
    # "-extldflags '-static -I${pkgs.linux-pam}/include -L${pkgs.linux-pam}/lib'"
  ];
}