forked from wurzel/fruitbasket
matrix: use upstream ldap plugin
it has been updated and supports reading bind_password from a file now
This commit is contained in:
parent
8a8af52ec7
commit
b972d22997
2 changed files with 1 additions and 24 deletions
|
@ -19,9 +19,7 @@ let
|
||||||
return 200 '${builtins.toJSON data}';
|
return 200 '${builtins.toJSON data}';
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# build ldap3 plugin from git because it's very outdated in nixpkgs
|
matrix-synapse-ldap3 = config.services.matrix-synapse.package.plugins.matrix-synapse-ldap3;
|
||||||
matrix-synapse-ldap3 = pkgs.python3.pkgs.callPackage ../pkgs/matrix-synapse-ldap3.nix { };
|
|
||||||
# matrix-synapse-ldap3 = config.services.matrix-synapse.package.plugins.matrix-synapse-ldap3;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sops.secrets.matrix_ldap_search = {
|
sops.secrets.matrix_ldap_search = {
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
{ isPy3k, buildPythonPackage, pkgs, service-identity, ldap3, twisted, ldaptor, mock }:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "matrix-synapse-ldap3";
|
|
||||||
version = "0.2.2";
|
|
||||||
|
|
||||||
format = "pyproject";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "matrix-org";
|
|
||||||
repo = "matrix-synapse-ldap3";
|
|
||||||
rev = "2584736204165f16c176567183f9c350ee253f74";
|
|
||||||
sha256 = "gMsC5FpC2zt5hypPdGgPbWT/Rwz38EoQz3tj5dQ9BQ8=";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ service-identity ldap3 twisted ];
|
|
||||||
|
|
||||||
# ldaptor is not ready for py3 yet
|
|
||||||
doCheck = !isPy3k;
|
|
||||||
checkInputs = [ ldaptor mock ];
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue