for the admin server. (The extended message won't be displayed by
kadmin currently; that's a separate issue.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24054
dc483132-0cff-0310-8789-
dd5450dbe970
hp = gethostbyname(params_out.admin_server);
if (hp == NULL) {
- ret = errno;
+ ret = KADM5_CANT_RESOLVE;
+ krb5_set_error_message(ctx, ret,
+ "Cannot resolve address of admin server \"%s\" "
+ "for realm \"%s\"", params_out.admin_server,
+ realm_in);
goto err_params;
}
if (strlen(hp->h_name) + sizeof("kadmin/") > maxlen) {
code = kadm5_get_admin_service_name(handle->context,
handle->params.realm,
svcname, sizeof(svcname));
- if (code) {
- code = KADM5_MISSING_KRB5_CONF_PARAMS;
+ if (code)
goto error;
- }
} else {
strncpy(svcname, svcname_in, sizeof(svcname));
svcname[sizeof(svcname)-1] = '\0';
error_code KADM5_SETKEY3_ETYPE_MISMATCH, "Mismatched enctypes for setkey3"
error_code KADM5_MISSING_KRB5_CONF_PARAMS, "Missing parameters in krb5.conf required for kadmin client"
error_code KADM5_XDR_FAILURE, "XDR encoding error"
+error_code KADM5_CANT_RESOLVE, "Cannot resolve network address for admin server in requested realm"
end