From 7b9d22a2e4161a64fef8ae35675355cbf152c349 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 21 Jun 2023 17:33:17 +0200 Subject: [PATCH] msldapdump: init at unstable-2023-06-12 --- pkgs/tools/security/msldapdump/default.nix | 46 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/tools/security/msldapdump/default.nix diff --git a/pkgs/tools/security/msldapdump/default.nix b/pkgs/tools/security/msldapdump/default.nix new file mode 100644 index 00000000000..cf232c3df69 --- /dev/null +++ b/pkgs/tools/security/msldapdump/default.nix @@ -0,0 +1,46 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "msldapdump"; + version = "unstable-2023-06-12"; + format = "other"; + + src = fetchFromGitHub { + owner = "dievus"; + repo = "msLDAPDump"; + rev = "bdffe66be20ff844f55f69fd6d842d7f75f66f2d"; + hash = "sha256-qH4AaebrTKYxxjXawllxgiG9fVm03zmTRv/HAyNpewg="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + colorama + ldap3 + ]; + + dontBuild = true; + + installPhase = '' + runHook preInstall + + install -vD msLDAPDump.py $out/bin/msLDAPDump.py + + makeWrapper ${python3.interpreter} $out/bin/msldapdump \ + --set PYTHONPATH "$PYTHONPATH:$out/bin/msLDAPDump.py" \ + --add-flags "-O $out/bin/msLDAPDump.py" + + runHook postInstall + ''; + + # Project has no tests + doCheck = false; + + meta = with lib; { + description = "LDAP enumeration tool"; + homepage = "https://github.com/dievus/msLDAPDump"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index debd2a6ae5e..5fe78d2b06d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6063,6 +6063,8 @@ with pkgs; mstflint = callPackage ../tools/misc/mstflint { }; + msldapdump = callPackage ../tools/security/msldapdump { }; + mslink = callPackage ../tools/misc/mslink { }; mceinject = callPackage ../os-specific/linux/mceinject { };