diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-08-04 09:30:06 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-08-17 15:10:23 +0200 |
commit | 4772d3f1fe5015a25ba1fb4c3779ee3117ec6fcb (patch) | |
tree | c44b98ed719190c6c4c9d0c339a26124bef6482c /src/providers | |
parent | e2e334b2f51118cb14c7391c4e4e44ff247ef638 (diff) | |
download | sssd-4772d3f1fe5015a25ba1fb4c3779ee3117ec6fcb.tar.gz sssd-4772d3f1fe5015a25ba1fb4c3779ee3117ec6fcb.tar.xz sssd-4772d3f1fe5015a25ba1fb4c3779ee3117ec6fcb.zip |
LDAP: minor improvements in ldap id cleanup
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/ldap/ldap_id_cleanup.c | 6 | ||||
-rw-r--r-- | src/providers/ldap/sdap_async_enum.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c index e44e48549..0a2b23297 100644 --- a/src/providers/ldap/ldap_id_cleanup.c +++ b/src/providers/ldap/ldap_id_cleanup.c @@ -436,10 +436,10 @@ static int cleanup_groups(TALLOC_CTX *memctx, ret, strerror(ret)); goto done; } - } - if (ret != EOK) { + } else if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, - "Failed to search sysdb using %s: %d\n", subfilter, ret); + "Failed to search sysdb using %s: [%d] %s\n", + subfilter, ret, sss_strerror(ret)); goto done; } talloc_zfree(u_msgs); diff --git a/src/providers/ldap/sdap_async_enum.c b/src/providers/ldap/sdap_async_enum.c index 2d3821542..a7ad5609d 100644 --- a/src/providers/ldap/sdap_async_enum.c +++ b/src/providers/ldap/sdap_async_enum.c @@ -487,7 +487,8 @@ static void sdap_dom_enum_ex_svcs_done(struct tevent_req *subreq) /* Not fatal, worst case we'll have stale entries that would be * removed on a subsequent online lookup */ - DEBUG(SSSDBG_MINOR_FAILURE, "Cleanup failed: %d\n", ret); + DEBUG(SSSDBG_MINOR_FAILURE, "Cleanup failed: [%d]: %s\n", + ret, sss_strerror(ret)); } } |