mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
The host details page has been modified to show the status of the OTP. Setting a new OTP is now done using a dialog box. Ticket #1710
30 lines
751 B
Bash
Executable File
30 lines
751 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FIXTURE_DIR=$1
|
|
|
|
INIT_FILE=$FIXTURE_DIR/ipa_init.json
|
|
|
|
usage(){
|
|
echo "$0 {FIXTURE_DIR}"
|
|
exit 1
|
|
}
|
|
|
|
if [ ! -f $INIT_FILE ]
|
|
then
|
|
usage
|
|
exit 1
|
|
fi
|
|
|
|
|
|
|
|
curl -v\
|
|
-H "Content-Type: application/json"\
|
|
-H "Accept: applicaton/json"\
|
|
--negotiate\
|
|
--delegation always\
|
|
-u :\
|
|
--cacert /etc/ipa/ca.crt\
|
|
-d '{"method":"batch","params":[[{"method":"json_metadata","params":[[],{}]},{"method":"i18n_messages","params":[[],{}]},{"method":"user_find","params":[[],{"whoami":true,"all":true}]},{"method":"env","params":[[],{}]},{"method":"dns_is_enabled","params":[[],{}]},{"method":"hbacrule_find","params":[[],{"accessruletype":"deny"}]}],{}]}'\
|
|
-X POST\
|
|
https://`hostname`/ipa/json | sed 's/[ \t]*$//' > $INIT_FILE
|