forked from lix-project/hydra
fix ldap nixos test
passwords were replaced with salted sha1 instead of sha256, because I don't want to have to figure out how to make slapd load this module We could also just do {CLEARTEXT} for the purpose of this test
This commit is contained in:
parent
a0a9d4c1c3
commit
59cb44261d
1 changed files with 5 additions and 10 deletions
15
flake.nix
15
flake.nix
|
@ -858,15 +858,10 @@
|
||||||
rootpw = "notapassword";
|
rootpw = "notapassword";
|
||||||
database = "bdb";
|
database = "bdb";
|
||||||
dataDir = "/var/lib/openldap";
|
dataDir = "/var/lib/openldap";
|
||||||
extraConfig = ''
|
|
||||||
moduleload pw-sha2
|
|
||||||
'';
|
|
||||||
extraDatabaseConfig = ''
|
|
||||||
'';
|
|
||||||
|
|
||||||
# userPassword generated via `slappasswd -o module-load=pw-sha2 -h '{SSHA256}'`
|
# userPassword generated via `slappasswd`
|
||||||
# The admin user has the password `password and `user` has the password `foobar`.
|
# The admin user has the password `password` and `user` has the password `foobar`.
|
||||||
declarativeContents = ''
|
declarativeContents."dc=example" = ''
|
||||||
dn: dc=example
|
dn: dc=example
|
||||||
dc: example
|
dc: example
|
||||||
o: Root
|
o: Root
|
||||||
|
@ -898,7 +893,7 @@
|
||||||
sn: user
|
sn: user
|
||||||
cn: user
|
cn: user
|
||||||
mail: user@example
|
mail: user@example
|
||||||
userPassword: {SSHA256}B9rfUbNgv8nIGn1Hm5qbVQdv6AIQb012ORJwegqELB0DWCzoMCY+4A==
|
userPassword: {SSHA}gLgBMb86/3wecoCp8gtORgIF2/qCRpqs
|
||||||
|
|
||||||
dn: cn=admin,ou=users,dc=example
|
dn: cn=admin,ou=users,dc=example
|
||||||
objectClass: organizationalPerson
|
objectClass: organizationalPerson
|
||||||
|
@ -906,7 +901,7 @@
|
||||||
sn: admin
|
sn: admin
|
||||||
cn: admin
|
cn: admin
|
||||||
mail: admin@example
|
mail: admin@example
|
||||||
userPassword: {SSHA256}meKP7fSWhkzXFC1f8RWRb8V8ssmN/VQJp7xJrUFFcNUDuwP1PbitMg==
|
userPassword: {SSHA}BsgOQcRnoiULzwLrGmuzVGH6EC5Dkwmf
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
systemd.services.hdyra-server.environment.CATALYST_DEBUG = "1";
|
systemd.services.hdyra-server.environment.CATALYST_DEBUG = "1";
|
||||||
|
|
Loading…
Reference in a new issue