[krbdev.mit.edu #8277] git commit
Greg Hudson via RT
rt-comment at krbdev.mit.edu
Mon Jun 13 12:46:30 EDT 2016
Fix kprop and kpropd realm handling
Add the sn2princ_with_realm() helper function (currently duplicated in
kprop.c and kpropd.c) to simplify principal realm substitution. Use
sn2princ_with_realm() in kprop.c and kpropd.c in place of
krb5_sname_to_principal(), with the default realm if -r is not provided.
If a realm is given to kpropd, set it as the default realm on the
kpropd_context, allowing a later call of ulog_replay() to open the
correct database.
Remove referral realm code in kprop.c and kpropd.c. Pass the realm
(default or provided) to the kdb5_util and kprop commands called by
kadmind.
https://github.com/krb5/krb5/commit/0e7b4c901bf475f61b74ca56363089906e324272
Author: Matt Rogers <mrogers at redhat.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 0e7b4c901bf475f61b74ca56363089906e324272
Branch: master
src/kadmin/server/ipropd_svc.c | 15 +++---
src/slave/kprop.c | 80 +++++++++++++++++++++-------------
src/slave/kpropd.c | 93 ++++++++++++++++++++++-----------------
3 files changed, 109 insertions(+), 79 deletions(-)
More information about the krb5-bugs
mailing list