]> git.ipfire.org Git - thirdparty/krb5.git/commit
Simplify libkadm5 client realm initialization
authorGreg Hudson <ghudson@mit.edu>
Thu, 19 Dec 2013 17:22:47 +0000 (12:22 -0500)
committerGreg Hudson <ghudson@mit.edu>
Sat, 21 Dec 2013 05:06:22 +0000 (00:06 -0500)
commit33b06596be92f7d8458ac6b136f092e235dec834
tree1a128015036b5ecc9dd560f111e46da87f37b275
parentf5d5fa24c6c58b54349351beaea8220f5ca0f3ef
Simplify libkadm5 client realm initialization

The "realm" variable in init_any is used only to fill in the realm of
the service principal in gic_iter().  The service principal realm
should always be the realm we looked up config parameters for, so we
can supply that realm to get_init_creds() unconditionally and
eliminate the case where we use the client principal realm.

Also get rid of an outdated comment and an #if 0 block we will never
need again, and use SNPRINTF_OVERFLOW to check the snprintf result.
src/lib/kadm5/clnt/client_init.c