Guest User

Untitled

a guest
May 27th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/bin/expect -f
  2.  
  3. # this script is answer key for the ipa-client-install
  4. # Usage: replace the my_name and my_pass variables with the username and password for your domain admin user/password
  5.  
  6. set my_name "top_secret"
  7. set my_pass "top_secret"
  8.  
  9. set timeout -1
  10. spawn ipa-client-install --mkhomedir --ssh-trust-dns
  11. expect "*Continue"
  12. send -- "yes\r"
  13. expect "*User"
  14. send -- "$my_name\r"
  15. expect "*Password"
  16. send -- "$my_pass\r"
  17. expect EOF
Add Comment
Please, Sign In to add comment