aboutsummaryrefslogtreecommitdiff
path: root/templates/verify_active_directory.erb
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2014-01-10 15:28:07 -0800
committerAdam Jahn <ajjahn@gmail.com>2014-01-10 15:28:07 -0800
commite1f6fd1859b69198fafd9a3abe7112e4717156fe (patch)
tree61b4772b2462c0a29c8d94e9ed63d73dfbafa5cb /templates/verify_active_directory.erb
parent2ca5eb3109c7d12c8252e4d228946267dc43c93a (diff)
parent6d936df97546f8809b42ede32df1d460b06a50a3 (diff)
downloadpuppet-samba-e1f6fd1859b69198fafd9a3abe7112e4717156fe.tar.gz
puppet-samba-e1f6fd1859b69198fafd9a3abe7112e4717156fe.tar.bz2
Merge pull request #16 from tomas-edwardsson/expect_quoting
Proper tcl quoting for password in expect
Diffstat (limited to 'templates/verify_active_directory.erb')
-rw-r--r--templates/verify_active_directory.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/verify_active_directory.erb b/templates/verify_active_directory.erb
index 5a2a506..0917c49 100644
--- a/templates/verify_active_directory.erb
+++ b/templates/verify_active_directory.erb
@@ -21,7 +21,7 @@ fi
# } >&2
#fi
-password="<%= scope.lookupvar('samba::server::ads::winbind_pass') -%>"
+password='<%= scope.lookupvar('samba::server::ads::winbind_pass') -%>'
# short hostname from facter
my_hostname="<%= hostname -%>"
@@ -62,7 +62,8 @@ get_tgt() {
(
$EXPECT -c "spawn -noecho kinit -c $KRB5CCNAME ${winbind_acct}@${default_realm};
expect :;
- send ${password}\n;
+ send {${password}};
+ send \n;
expect eof"
) &> /dev/null
klist -c $KRB5CCNAME &> /dev/null