Merge pull request #239015 from fabaff/msldapdump

msldapdump: init at unstable-2023-06-12
This commit is contained in:
Fabian Affolter 2023-06-23 21:10:13 +02:00 committed by GitHub
commit 146534f2b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -6091,6 +6091,8 @@ with pkgs;
mstflint = callPackage ../tools/misc/mstflint { };
msldapdump = callPackage ../tools/security/msldapdump { };
mslink = callPackage ../tools/misc/mslink { };
mceinject = callPackage ../os-specific/linux/mceinject { };