]> git.ipfire.org Git - thirdparty/krb5.git/commit
Improve kdb5 error when default realm is unset
authorGreg Hudson <ghudson@mit.edu>
Fri, 1 Jul 2016 15:10:19 +0000 (11:10 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 6 Jul 2016 20:23:43 +0000 (16:23 -0400)
commitdcc8b9541947024386905d73a966f458e94ac3d5
tree9664ede4b7cf885e156f85f8282b99a934e9c588
parentc0a12661789ac536f0657506f0541dfb4d8a0cd9
Improve kdb5 error when default realm is unset

When the default realm name is unspecified, and none was set in the
krb5_context object, return KRB5_CONFIG_NODEFREALM from libkdb5
instead of the confusing KRB5_KDB_DBTYPE_NOTFOUND.  To accomplish
this, make kdb_get_library_name() return a krb5_error_code.

(cherry picked from commit 4131988dec0199287765e1875fe0bbd375656a62)

ticket: 8448
version_fixed: 1.14.3
tags: -pullup
status: resolved
src/lib/kdb/kdb5.c