X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fgssd%2Fkrb5_util.c;h=e3c6f5e2ba4b378808a7b427ac33a1f1e1d79130;hp=77814bc3d91892777a398a990d0a79315de7a902;hb=336f8bca825416082d62ef38314f3e0b7e8f5cc2;hpb=afa859b029d9cd15604ce7d5f88b5a205ea4c774 diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c index 77814bc..e3c6f5e 100644 --- a/utils/gssd/krb5_util.c +++ b/utils/gssd/krb5_util.c @@ -91,10 +91,14 @@ */ +#ifdef HAVE_CONFIG_H +#include +#endif /* HAVE_CONFIG_H */ + #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif -#include "config.h" + #include #include #include @@ -120,7 +124,6 @@ #include "gssd.h" #include "err_util.h" #include "gss_util.h" -#include "gss_oids.h" #include "krb5_util.h" /* Global list of principals/cache file names for machine credentials */ @@ -399,7 +402,7 @@ gssd_get_single_krb5_cred(krb5_context context, goto out; } if (krb5_get_init_creds_opt_set_addressless(context, init_opts, 1)) - printerr(0, "WARNING: Unable to set option for addressless " + printerr(1, "WARNING: Unable to set option for addressless " "tickets. May have problems behind a NAT.\n"); #ifdef TEST_SHORT_LIFETIME /* set a short lifetime (for debugging only!) */ @@ -422,7 +425,7 @@ gssd_get_single_krb5_cred(krb5_context context, if ((code = krb5_get_init_creds_keytab(context, &my_creds, ple->princ, kt, 0, NULL, opts))) { - printerr(0, "WARNING: %s while getting initial ticket for " + printerr(1, "WARNING: %s while getting initial ticket for " "principal '%s' using keytab '%s'\n", gssd_k5_err_msg(context, code), pname ? pname : "", kt_name); @@ -632,7 +635,7 @@ get_full_hostname(const char *inhost, char *outhost, int outhostlen) /* Get full target hostname */ retval = getaddrinfo(inhost, NULL, &hints, &addrs); if (retval) { - printerr(0, "%s while getting full hostname for '%s'\n", + printerr(1, "%s while getting full hostname for '%s'\n", gai_strerror(retval), inhost); goto out; }