From 9ac9449a0a50d8daf07b08f46a5b49bc28b045ca Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 5 Sep 2022 14:56:23 +0200 Subject: [PATCH] nixos/tests/kanidm: Update recover_account commandline The username is now passed directly as an argument. --- nixos/tests/kanidm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/kanidm.nix b/nixos/tests/kanidm.nix index d34f680f5224..852dc53e75d3 100644 --- a/nixos/tests/kanidm.nix +++ b/nixos/tests/kanidm.nix @@ -69,7 +69,7 @@ import ./make-test-python.nix ({ pkgs, ... }: server.wait_until_succeeds("curl -sf https://${serverDomain} | grep Kanidm") server.wait_until_succeeds("ldapsearch -H ldap://[::1]:636 -b '${ldapBaseDN}' -x '(name=test)'") client.wait_until_succeeds("kanidm login -D anonymous && kanidm self whoami | grep anonymous@${serverDomain}") - (rv, result) = server.execute("kanidmd recover_account -d quiet -c ${serverConfigFile} -n admin 2>&1 | rg -o '[A-Za-z0-9]{48}'") + rv, result = server.execute("kanidmd recover_account -c ${serverConfigFile} idm_admin 2>&1 | rg -o '[A-Za-z0-9]{48}'") assert rv == 0 ''; })