Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy information wrong #25

Open
jblaine opened this issue Feb 27, 2018 · 1 comment
Open

Policy information wrong #25

jblaine opened this issue Feb 27, 2018 · 1 comment

Comments

@jblaine
Copy link

jblaine commented Feb 27, 2018

Unless I am doing something wrong here, it would appear that policy information is not properly being populated with a call to kadm5.find_principal(). I am using rkerberos 0.1.5.

Compare:

kadmin:  getprinc jblaine
...
Policy: RCFUsers

with:

[21] pry(main)> foo = kadm5.find_principal("jblaine")
=> #<Kerberos::Krb5::Principal attributes=128 ... policy=nil principal="jblaine" >
[22] pry(main)> foo.principal
=> "jblaine"
[23] pry(main)> foo.policy
=> nil
[24] pry(main)>
@djberg96
Copy link
Collaborator

djberg96 commented Mar 1, 2018

I think I see the bug:

https://github.com/domcleal/rkerberos/blob/master/ext/rkerberos/kadm5.c#L399-L400

There's a missing "@" sign.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants