Can auth, missing mappings I think

This commit is contained in:
Daniel Flanagan 2024-08-08 16:21:46 -05:00
parent 85072ba8cf
commit 3c5908371b

View file

@ -42,15 +42,14 @@ function create_user {
krun kanidm person create "$username" "$username user" --name idm_admin
krun kanidm person update "$username" --legalname "$username Lastname" --mail "${username}@example.com" --name idm_admin
# TODO: this doesn't seem to work? can't seem to commit changes
# (
# sleep 0.1
# echo "pass"
# sleep 0.1
# echo "$FAKE_PASSWORD"
# sleep 0.1
# echo "$FAKE_PASSWORD"
# sleep 0.1
(
sleep 0.1
echo "pass"
sleep 0.1
echo "$FAKE_PASSWORD"
sleep 0.1
echo "$FAKE_PASSWORD"
sleep 0.1
# echo "totp"
# sleep 0.1
# echo "totpname"
@ -60,12 +59,12 @@ function create_user {
# totp_code="$(oathtool --totp=SHA256 -b "$totp_secret")"
# echo "$totp_code"
# sleep 0.1
# echo "commit"
# sleep 0.1
# echo "y"
# sleep 0.1
# echo "end"
# ) | krun kanidm person credential update "$username" --name idm_admin | tee /tmp/create-user-log.txt
echo "commit"
sleep 0.1
echo "y"
sleep 0.1
echo "end"
) | krun kanidm person credential update "$username" --name idm_admin | tee /tmp/create-user-log.txt
}
# setup loose policies for testing