Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/expect -f
- # this script is answer key for the ipa-client-install
- # Usage: replace the my_name and my_pass variables with the username and password for your domain admin user/password
- set my_name "top_secret"
- set my_pass "top_secret"
- set timeout -1
- spawn ipa-client-install --mkhomedir --ssh-trust-dns
- expect "*Continue"
- send -- "yes\r"
- expect "*User"
- send -- "$my_name\r"
- expect "*Password"
- send -- "$my_pass\r"
- expect EOF
Add Comment
Please, Sign In to add comment