From: Gary Lockyer Date: Mon, 27 Aug 2018 19:46:59 +0000 (+1200) Subject: kdc: Update debug calls X-Git-Tag: tdb-1.3.17~979 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=325e928db94bb6292cd819e92bb5ec1525c81343;p=thirdparty%2Fsamba.git kdc: Update debug calls Signed-off-by: Gary Lockyer --- diff --git a/source4/kdc/kdc-heimdal.c b/source4/kdc/kdc-heimdal.c index dd2ab4cdb37..407de92054e 100644 --- a/source4/kdc/kdc-heimdal.c +++ b/source4/kdc/kdc-heimdal.c @@ -78,8 +78,8 @@ static kdc_code kdc_process(struct kdc_server *kdc, return KDC_ERROR; } - DEBUG(10,("Received KDC packet of length %lu from %s\n", - (long)input->length - 4, pa)); + DBG_DEBUG("Received KDC packet of length %lu from %s\n", + (long)input->length - 4, pa); ret = krb5_kdc_process_krb5_request(kdc->smb_krb5_context->krb5_context, kdc_config, @@ -342,15 +342,16 @@ static void kdc_post_fork(struct task_server *task) NULL, 0); if (!kdc->samdb) { - DEBUG(1,("kdc_task_init: unable to connect to samdb\n")); + DBG_WARNING("kdc_task_init: unable to connect to samdb\n"); task_server_terminate(task, "kdc: krb5_init_context samdb connect failed", true); return; } ldb_ret = samdb_rodc(kdc->samdb, &kdc->am_rodc); if (ldb_ret != LDB_SUCCESS) { - DEBUG(1, ("kdc_task_init: Cannot determine if we are an RODC: %s\n", - ldb_errstring(kdc->samdb))); + DBG_WARNING("kdc_task_init: " + "Cannot determine if we are an RODC: %s\n", + ldb_errstring(kdc->samdb)); task_server_terminate(task, "kdc: krb5_init_context samdb RODC connect failed", true); return; } @@ -361,8 +362,8 @@ static void kdc_post_fork(struct task_server *task) ret = smb_krb5_init_context(kdc, task->lp_ctx, &kdc->smb_krb5_context); if (ret) { - DEBUG(1,("kdc_task_init: krb5_init_context failed (%s)\n", - error_message(ret))); + DBG_WARNING("kdc_task_init: krb5_init_context failed (%s)\n", + error_message(ret)); task_server_terminate(task, "kdc: krb5_init_context failed", true); return; }