Open JaBurd opened 5 years ago
This appears to be working in my local environment. I need to double check my passwords and usernames in the dev environment where it's failing.
Leveraging the rkerberos gem on my dev environment master server, it appears to be functioning as expected when passing the proper credentials:
irb(main):001:0> require 'rkerberos'
=> true
irb(main):002:0> krb5 = Kerberos::Krb5.new
=> #<Kerberos::Krb5:0x0000000001441b68>
irb(main):003:0> puts krb5.default_realm
KERBEROS.MASTER.COM
=> nil
irb(main):004:0> krb5.close
=> true
irb(main):005:0> kadm5 = Kerberos::Kadm5.new(:principal => 'kdcadmin/admin', :password => 'xxxpasswordxxx')
=> #<Kerberos::Kadm5:0x0000000001294ea0>
irb(main):006:0> kadm5.get_principal('host/kerberos.master.com')
=> #<Kerberos::Krb5::Principal attributes=0 aux_attributes=0 expire_time=nil fail_auth_count=0 kvno=2 last_failed=nil last_password_change=nil last_success=nil max_life=86400 max_renewable_life=0 mod_date=2019-04-15 15:16:01 -0400 mod_name="hdfs-dev/admin@KERBEROS.MASTER.COM" password_expiration=nil policy=nil principal="host/kerberos.master.com" >
Local environment still working. Though if un/pw aren't getting set & used properly I could see how it would work locally as it's just using blank values.
Issue creating principals via host_keytab recipe.
We're setting the passwords via databag:
and appears they should be getting passed via the init:
https://github.com/atomic-penguin/cookbook-krb5/blob/master/resources/principal.rb#L30
Still trying to debug, looking for additional options to try as well.