at 23.11-beta 682 B view raw
1import ./make-test-python.nix ({ ... }: { 2 name = "lldap"; 3 4 nodes.machine = { pkgs, ... }: { 5 services.lldap = { 6 enable = true; 7 settings = { 8 verbose = true; 9 ldap_base_dn = "dc=example,dc=com"; 10 }; 11 }; 12 environment.systemPackages = [ pkgs.openldap ]; 13 }; 14 15 testScript = '' 16 machine.wait_for_unit("lldap.service") 17 machine.wait_for_open_port(3890) 18 machine.wait_for_open_port(17170) 19 20 machine.succeed("curl --location --fail http://localhost:17170/") 21 22 print( 23 machine.succeed('ldapsearch -H ldap://localhost:3890 -D uid=admin,ou=people,dc=example,dc=com -b "ou=people,dc=example,dc=com" -w password') 24 ) 25 ''; 26})