kprop enhancement: new command-line option -p

Greg Hudson ghudson at MIT.EDU
Wed Aug 21 14:24:56 EDT 2013

On 08/19/2013 06:36 PM, Michael Raitza wrote:
> I have written the patch against krb5.git and hereby request a pull. :)

Were you able to test this?  I get compiler warnings when I build it and
it doesn't appear to work:

../../src/slave/kprop.c:215:34: warning: passing argument 2 of
‘krb5_parse_name’ from incompatible pointer type [enabled by default]
../include/krb5/krb5.h:3449:1: note: expected ‘const char *’ but
argument is of type ‘char **’
../../src/slave/kprop.c:223:15: warning: assignment from incompatible
pointer type [enabled by default]

The first problem is easy to fix; the second is a little harder, because
we can't get a C string out of the parsed principal name.

My inclination is to make it so that -p doesn't affect the realm of the
server principal, and make -p and -r non-exclusive.

More information about the krbdev mailing list