Staging updated method to provide password for LWRP

This commit is contained in:
Eric Renfro 2016-07-21 12:43:00 -04:00
parent 673a44a90c
commit 2336fcae1e
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,10 @@ end
private
def ipa_krblogin
#File.open("/tmp/ipa.admin", "w") do |f|
# f.write(passwords["ipa_user_pwd"]
#end
if ::File.exist?('/etc/ipa/admin.password') then
system 'kinit admin -l 1h < /etc/ipa/admin.password &>/dev/null'
if $? == 0 then