include realm in "can't resolve KDC" error message
authorKen Raeburn <raeburn@mit.edu>
Thu, 16 Nov 2006 01:19:01 +0000 (01:19 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 16 Nov 2006 01:19:01 +0000 (01:19 +0000)
* locate_kdc.c (krb5int_locate_server): Store an error message for
REALM_CANT_RESOLVE error that lists the realm.

ticket: new
target_version: 1.6
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18816 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/locate_kdc.c

index db176a7766a63f970c48fc7fe26907c06676c776..57e2456b94f6821cec95397a4798bb4e56c3322f 100644 (file)
@@ -814,6 +814,10 @@ krb5int_locate_server (krb5_context context, const krb5_data *realm,
     if (al.naddrs == 0) {      /* No good servers */
        if (al.space)
            free_list (&al);
+       krb5_set_error_message(context, KRB5_REALM_CANT_RESOLVE,
+                              "Cannot resolve network address for KDC in realm %.*s",
+                              realm->length, realm->data);
+                              
        return KRB5_REALM_CANT_RESOLVE;
     }
     *addrlist = al;