@@ -41,7 +41,7 @@ in {
4141 superUser = "admin";
4242 };
4343 services.dokuwiki."site2.local" = {
44− aclUse = true;
44+ usersFile = "/var/lib/dokuwiki/site2.local/users.auth.php";
4545 superUser = "admin";
4646 templates = [ template-bootstrap3 ];
4747 plugins = [ plugin-icalevents ];
@@ -62,6 +62,15 @@ in {
6262 machine.wait_for_open_port(80)
6363
6464 machine.succeed("curl -sSfL http://site1.local/ | grep 'DokuWiki'")
65+ machine.fail("curl -sSfL 'http://site1.local/doku.php?do=login' | grep 'Login'")
66+
6567 machine.succeed("curl -sSfL http://site2.local/ | grep 'DokuWiki'")
68+ machine.succeed("curl -sSfL 'http://site2.local/doku.php?do=login' | grep 'Login'")
69+
70+ machine.succeed(
71+ "echo 'admin:$2y$10$ijdBQMzSVV20SrKtCna8gue36vnsbVm2wItAXvdm876sshI4uwy6S:Admin:admin@example.test:user' >> /var/lib/dokuwiki/site2.local/users.auth.php",
72+ "curl -sSfL -d 'u=admin&p=password' --cookie-jar cjar 'http://site2.local/doku.php?do=login'",
73+ "curl -sSfL --cookie cjar --cookie-jar cjar 'http://site2.local/doku.php?do=login' | grep 'Logged in as: <bdi>Admin</bdi>'",
74+ )
6675 '';
6776})