diff options
author | Tomas Edwardsson <tommi@tommi.org> | 2013-09-02 15:13:58 +0000 |
---|---|---|
committer | Tomas Edwardsson <tommi@tommi.org> | 2013-09-02 15:17:21 +0000 |
commit | 6d936df97546f8809b42ede32df1d460b06a50a3 (patch) | |
tree | 5f7988549d029bdf8692ebc82956151531c609ee /templates/configure_active_directory.erb | |
parent | 63d27babd8e779fce6248afb94e9f49ff7d74ef2 (diff) | |
download | puppet-samba-6d936df97546f8809b42ede32df1d460b06a50a3.tar.gz puppet-samba-6d936df97546f8809b42ede32df1d460b06a50a3.tar.bz2 |
Proper tcl quoting for password in expect
See [5] Braces - http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M9
Diffstat (limited to 'templates/configure_active_directory.erb')
-rw-r--r-- | templates/configure_active_directory.erb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/configure_active_directory.erb b/templates/configure_active_directory.erb index c860c78..4f9b6e0 100644 --- a/templates/configure_active_directory.erb +++ b/templates/configure_active_directory.erb @@ -125,10 +125,11 @@ for attempt in $(seq 1 $max_attempts); do echo "$attempt of $max_attempts:" ad_settle echo "Getting TGT for ${winbind_acct}@${my_realm}" >&2 - $EXPECT -c spawn -noecho kinit -c $KRB5CCNAME '${winbind_acct}@${my_realm}; + $EXPECT -c "spawn -noecho kinit -c $KRB5CCNAME ${winbind_acct}@${my_realm}; expect :; - send ${password}\n; - expect eof' + send {${password}}; + send \n; + expect eof" klist -c $KRB5CCNAME &> /dev/null && break done |