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

View file

@ -24,6 +24,10 @@ end
private private
def ipa_krblogin 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 if ::File.exist?('/etc/ipa/admin.password') then
system 'kinit admin -l 1h < /etc/ipa/admin.password &>/dev/null' system 'kinit admin -l 1h < /etc/ipa/admin.password &>/dev/null'
if $? == 0 then if $? == 0 then