From 58b0daabb26541abb73a04390e6376be64277521 Mon Sep 17 00:00:00 2001 From: German Parente Date: May 10 2019 15:11:22 +0000 Subject: Ticket 50013 - Log warn instead of ERR when aci target does not exist. Bug Description: This is something we have very often in IPA context and customers are very often asking why there are errors in the logs: [31/Oct/2018:05:52:23.436616394 -0400] - ERR - NSACLPlugin - acl_parse - The ACL target cn=groups,cn=compat,dc=cgparente,dc=local does not exist [31/Oct/2018:05:52:23.438951763 -0400] - ERR - NSACLPlugin - acl_parse - The ACL target cn=computers,cn=compat,dc=cgparente,dc=local does not exist Fix Description: just log WARN instead of ERR https://pagure.io/389-ds-base/issue/50013 Author: German Parente Review by: ??? --- diff --git a/ldap/servers/plugins/acl/aclparse.c b/ldap/servers/plugins/acl/aclparse.c index a425adb..906c1d0 100644 --- a/ldap/servers/plugins/acl/aclparse.c +++ b/ldap/servers/plugins/acl/aclparse.c @@ -147,7 +147,7 @@ acl_parse(Slapi_PBlock *pb, char *str, aci_t *aci_item, char **errbuf) slapi_search_internal_pb(temppb); slapi_pblock_get(temppb, SLAPI_PLUGIN_INTOP_RESULT, &rc); if (rc != LDAP_SUCCESS) { - slapi_log_err(SLAPI_LOG_ERR, plugin_name, + slapi_log_err(SLAPI_LOG_WARNING, plugin_name, "acl_parse - The ACL target %s does not exist\n", slapi_sdn_get_dn(&targdn)); }