|
|
26521d |
From 11ec6a5bb6978f379206de5f2df9fc7c79a9a1c8 Mon Sep 17 00:00:00 2001
|
|
|
26521d |
From: German Parente <gparente@redhat.com>
|
|
|
26521d |
Date: Tue, 6 Nov 2018 18:46:42 +0100
|
|
|
26521d |
Subject: [PATCH] Ticket 50013 - Log warn instead of ERR when aci target does
|
|
|
26521d |
not exist.
|
|
|
26521d |
|
|
|
26521d |
Bug Description:
|
|
|
26521d |
|
|
|
26521d |
This is something we have very often in IPA context and customers are very often asking why there are errors in the logs:
|
|
|
26521d |
|
|
|
26521d |
[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
|
|
|
26521d |
[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
|
|
|
26521d |
|
|
|
26521d |
Fix Description:
|
|
|
26521d |
|
|
|
26521d |
just log WARN instead of ERR
|
|
|
26521d |
|
|
|
26521d |
https://pagure.io/389-ds-base/issue/50013
|
|
|
26521d |
|
|
|
26521d |
Author: German Parente <gparente@redhat.com>
|
|
|
26521d |
|
|
|
26521d |
Review by: ???
|
|
|
26521d |
---
|
|
|
26521d |
ldap/servers/plugins/acl/aclparse.c | 2 +-
|
|
|
26521d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
26521d |
|
|
|
26521d |
diff --git a/ldap/servers/plugins/acl/aclparse.c b/ldap/servers/plugins/acl/aclparse.c
|
|
|
26521d |
index a425adbd8..906c1d099 100644
|
|
|
26521d |
--- a/ldap/servers/plugins/acl/aclparse.c
|
|
|
26521d |
+++ b/ldap/servers/plugins/acl/aclparse.c
|
|
|
26521d |
@@ -147,7 +147,7 @@ acl_parse(Slapi_PBlock *pb, char *str, aci_t *aci_item, char **errbuf)
|
|
|
26521d |
slapi_search_internal_pb(temppb);
|
|
|
26521d |
slapi_pblock_get(temppb, SLAPI_PLUGIN_INTOP_RESULT, &rc);
|
|
|
26521d |
if (rc != LDAP_SUCCESS) {
|
|
|
26521d |
- slapi_log_err(SLAPI_LOG_ERR, plugin_name,
|
|
|
26521d |
+ slapi_log_err(SLAPI_LOG_WARNING, plugin_name,
|
|
|
26521d |
"acl_parse - The ACL target %s does not exist\n", slapi_sdn_get_dn(&targdn));
|
|
|
26521d |
}
|
|
|
26521d |
|
|
|
26521d |
--
|
|
|
26521d |
2.17.2
|
|
|
26521d |
|