* changepw.c (krb5_locate_kpasswd): Check specifically for certain errors
authorKen Raeburn <raeburn@mit.edu>
Wed, 4 Jun 2003 02:40:26 +0000 (02:40 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 4 Jun 2003 02:40:26 +0000 (02:40 +0000)
before using fallback heuristics.

ticket: 1549
status: open

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

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/changepw.c

index f95b55f13c4cce88056bde08057900b011757446..2b601c4602ea95521d73fdb3595d47de26bee7d8 100644 (file)
@@ -1,5 +1,8 @@
 2003-06-03  Ken Raeburn  <raeburn@mit.edu>
 
+       * changepw.c (krb5_locate_kpasswd): Check specifically for certain
+       errors before using fallback heuristics.
+
        * locate_kdc.c (get_port): Replace function with macro.
 
 2003-06-03  Alexandra Ellwood  <lxs@mit.edu>
index f8ec224dba504430e299218a1557736a541d4e64..780f0c05856eeb9a3536e33c3073e10aab14d59c 100644 (file)
@@ -54,7 +54,7 @@ krb5_locate_kpasswd(krb5_context context, const krb5_data *realm,
     code = krb5int_locate_server (context, realm, addrlist, 0,
                                  "kpasswd_server", "_kpasswd", 0,
                                  DEFAULT_KPASSWD_PORT, 0, 0);
-    if (code) {
+    if (code == KRB5_REALM_CANT_RESOLVE || code == KRB5_REALM_UNKNOWN) {
        code = krb5int_locate_server (context, realm, addrlist, 0,
                                      "admin_server", "_kerberos-adm", 1,
                                      DEFAULT_KPASSWD_PORT, 0, 0);