[SSSD] [PATCH] SDAP: Log failure from sysdb_handle_original_uuid
Lukas Slebodnik
lslebodn at redhat.com
Thu Jun 4 13:41:10 UTC 2015
ehlo,
I was reviewing patch for sysdb_handle_original_uuid
and I found out that debug message is not printed after each invocation of this
function. It was also reported by clang.
Simple patch is attached.
LS
-------------- next part --------------
>From 30f15c0cbf55bfbe9fedaea3e656fe85bb06b8a4 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Thu, 4 Jun 2015 15:36:21 +0200
Subject: [PATCH] SDAP: Log failure from sysdb_handle_original_uuid
---
src/providers/ldap/sdap_async_initgroups.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 4d9738ee6bdfaf6cb3c50ad8bf5a953ed6c7a488..ffb8f7e1f5db5564f45c4f5b7aff46139e64537d 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -202,6 +202,12 @@ errno_t sdap_add_incomplete_groups(struct sysdb_ctx *sysdb,
ldap_groups[ai],
opts->group_map[SDAP_AT_GROUP_UUID].sys_name,
ldap_groups[ai], "uniqueIDstr");
+ if (ret != EOK) {
+ DEBUG((ret == ENOENT) ? SSSDBG_TRACE_ALL : SSSDBG_MINOR_FAILURE,
+ "Failed to retrieve UUID [%d][%s].\n",
+ ret, sss_strerror(ret));
+ }
+
ret = sysdb_attrs_get_string(ldap_groups[ai],
"uniqueIDstr",
&uuid);
--
2.4.2
More information about the sssd-devel
mailing list