Blob Blame History Raw
From 5774526cf66d1e48b2226050e4dfeff394849771 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Po=C5=82awski?= <ppolawsk@redhat.com>
Date: Wed, 29 Apr 2020 12:48:40 +0200
Subject: [PATCH] DOMAIN: Downgrade log message type

Not all domains contains flat name.
This is specific and in most cases needed for AD domain.
In case of AD domain flat name checking and failure log already exists:
src/providers/ad/ad_domain_info.c +104

src/util/usertools.c contains more generic domain related
functions. In those cases missing of flat_name should not be
considered as failure.

Resolves:
https://github.com/SSSD/sssd/issues/1032

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit 4c93aa76d93fa786d52f78cd76d3afd94ee75ea2)
---
 src/util/usertools.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/usertools.c b/src/util/usertools.c
index 33f4f7811..4e63f4e05 100644
--- a/src/util/usertools.c
+++ b/src/util/usertools.c
@@ -561,8 +561,8 @@ calc_flat_name(struct sss_domain_info *domain)
 
     s = domain->flat_name;
     if (s == NULL) {
-        DEBUG(SSSDBG_MINOR_FAILURE, "Flat name requested but domain has no"
-              "flat name set, falling back to domain name\n");
+        DEBUG(SSSDBG_FUNC_DATA, "Domain has no flat name set,"
+              "using domain name instead\n");
         s = domain->name;
     }
 
-- 
2.21.1