Make fewer db lookups in kadm5_create_principal_3
authorGreg Hudson <ghudson@mit.edu>
Fri, 24 Jun 2011 20:12:28 +0000 (20:12 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 24 Jun 2011 20:12:28 +0000 (20:12 +0000)
commite44bb1be0949c251f4c357ef2e7f998e754b0b9b
tree8fe90a61c6d3f656960f31f55022db45e135cb6b
parente5ef18829c2ffe733d29fcaf74c05cc0196c2465
Make fewer db lookups in kadm5_create_principal_3

By creating the password history entry earlier in the function, we can
avoid the need to look up the principal entry twice just to save a
copy of the key data.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24990 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/kadm5/srv/svr_principal.c