#!/bin/bash set -o pipefail echo "Executing federation-sssd-setup.sh to prepare SSSD and PAM" quarkus/dist/src/main/content/bin/federation-sssd-setup.sh if [[ "true" == "$1" ]]; then echo "Adding users and groups for the test" printf "%b" "password\n" | kinit admin ipa group-add --desc='test group' testgroup ipa user-add emily --first=Emily --last=Jones --email=Emily@jones.com --random ipa group-add-member testgroup --users=emily ipa user-add bart --first=bart --last=bart --email= --random ipa user-add david --first=david --last=david --random kdestroy ldapmodify -D "cn=Directory Manager" -w password <