static char *reply_perm_str = "UPDATE_PERM_DENIED";
static char *reply_unknown_str = "<UNKNOWN_CODE>";
-#define LOG_UNAUTH _("Unauthorized request: %s, %s, " \
- "client=%s, service=%s, addr=%s")
-#define LOG_DONE _("Request: %s, %s, %s, client=%s, " \
- "service=%s, addr=%s")
+#define LOG_UNAUTH _("Unauthorized request: %s, client=%s, service=%s, addr=%s")
+#define LOG_DONE _("Request: %s, %s, %s, client=%s, service=%s, addr=%s")
#ifdef DPRINT
#undef DPRINT
ret.ret = UPDATE_PERM_DENIED;
krb5_klog_syslog(LOG_NOTICE, LOG_UNAUTH, whoami,
- "<null>", client_name, service_name,
+ client_name, service_name,
client_addr(rqstp));
goto out;
}
(unsigned long)arg->last_sno);
}
- krb5_klog_syslog(LOG_NOTICE, LOG_DONE, whoami,
+ krb5_klog_syslog(LOG_NOTICE,
+ _("Request: %s, %s, %s, client=%s, service=%s, addr=%s"),
+ whoami,
obuf,
((kret == 0) ? "success" : error_message(kret)),
client_name, service_name,
ret.ret = UPDATE_PERM_DENIED;
krb5_klog_syslog(LOG_NOTICE, LOG_UNAUTH, whoami,
- "<null>", client_name, service_name,
+ client_name, service_name,
client_addr(rqstp));
goto out;
}
* note the -i; modified version of kdb5_util dump format
* to include sno (serial number)
*/
- if (asprintf(&ubuf, "%s dump -i %s", KPROPD_DEFAULT_KDB5_UTIL,
- tmpf) < 0) {
+ if (asprintf(&ubuf, "%s dump -i %s </dev/null 2>&1",
+ KPROPD_DEFAULT_KDB5_UTIL, tmpf) < 0) {
krb5_klog_syslog(LOG_ERR,
_("%s: cannot construct kdb5 util dump string too long; out of memory"),
whoami);
ret.lastentry.last_time.seconds = 0;
ret.lastentry.last_time.useconds = 0;
- krb5_klog_syslog(LOG_NOTICE, LOG_DONE, whoami,
- "<null>",
- "success",
+ krb5_klog_syslog(LOG_NOTICE,
+ _("Request: %s, spawned resync process %d, client=%s, service=%s, addr=%s"),
+ whoami, fret,
client_name, service_name,
client_addr(rqstp));