Ignore errors in the second address lookup.
(krb5_locate_srv_conf_1) [TEST]: More debugging code.
+ * t_locate_kdc.c (main): Add new argument -m for looking up master
+ KDC addresses.
+
2002-09-03 Ken Raeburn <raeburn@mit.edu>
* accessor.c, an_to_ln.c, c_ustime.c, ccdefname.c, changepw.c,
krb5_data realm;
krb5_context ctx;
krb5_error_code err;
+ int master = 0;
p = strrchr (argv[0], '/');
if (p)
how = LOOKUP_CONF;
else if (!strcmp (argv[1], "-d"))
how = LOOKUP_DNS;
+ else if (!strcmp (argv[1], "-m"))
+ master = 1;
else
goto usage;
realmname = argv[2];
break;
default:
usage:
- fprintf (stderr, "%s: usage: %s [-c | -d] realm\n", prog, prog);
+ fprintf (stderr, "%s: usage: %s [-c | -d | -m] realm\n", prog, prog);
return 1;
}
break;
case LOOKUP_WHATEVER:
- err = krb5_locate_kdc (ctx, &realm, &al, 0, 0);
+ err = krb5_locate_kdc (ctx, &realm, &al, master, 0);
break;
}
if (err) kfatal (err);