Simplify and fix chpass_util error generation
authorGreg Hudson <ghudson@mit.edu>
Wed, 6 Jul 2011 16:33:27 +0000 (16:33 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 6 Jul 2011 16:33:27 +0000 (16:33 +0000)
commite50226d3c63e89938dcf24e8df876885b1823aa2
tree7392abc4411307bb1cf7f8c6d624cd3d1e2549c3
parentc0dd57f3c90c45feb9898b6ea5b45ef0ccd081f4
Simplify and fix chpass_util error generation

If a principal has no associated kadm5 policy, we may still get
password quality errors from a module (KDB or pwqual).  There was a
bug in the error generation for this case which caused only a generic
error to be returned.

Also use snprintf() instead of multiple string operations to compose
errors.

From Simo Sorce <ssorce@redhat.com>.

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