Hello,

Improve info messages about number of defined/loaded zones.

-- 
Petr^2 Spacek
From eb600df6af932292e0a15817710cfc674f5c952b Mon Sep 17 00:00:00 2001
From: Petr Spacek <pspa...@redhat.com>
Date: Fri, 7 Nov 2014 13:33:21 +0100
Subject: [PATCH] Improve info messages about number of defined/loaded zones.

---
 src/ldap_helper.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/ldap_helper.c b/src/ldap_helper.c
index 331c5d7fe3e05bcba2ce40e74dfec76f09d3ac30..cb1ada64635406552f6b231cdb19a888a0f92244 100644
--- a/src/ldap_helper.c
+++ b/src/ldap_helper.c
@@ -1204,10 +1204,13 @@ activate_zones(isc_task_t *task, ldap_instance_t *inst) {
 		}
 	};
 
-	log_info("%u zones from LDAP instance '%s' loaded (%u zones defined, "
-		 "%u inactive, %u failed to load)", published_cnt,
+	log_info("%u master zones from LDAP instance '%s' loaded (%u zones "
+		 "defined, %u inactive, %u failed to load)", published_cnt,
 		 inst->db_name, total_cnt, total_cnt - active_cnt,
 		 active_cnt - published_cnt);
+	if (total_cnt < 1)
+		log_info("0 master zones is suspicious number, please check "
+			 "access control instructions on LDAP server");
 	return result;
 }
 
-- 
1.9.3

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to