From ad9a833eee405e43c88ca1ba4964b1fd57636002 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Thu, 3 Jul 2014 12:45:43 +0200
Subject: [PATCH 1/6] ad: comment ENOENT when id mapping is disabled

---
 src/providers/ldap/sdap_async_initgroups_ad.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/providers/ldap/sdap_async_initgroups_ad.c b/src/providers/ldap/sdap_async_initgroups_ad.c
index 5bcc1ec0207fa523298e00de17b5f76f8146d397..c3b801ab156c61be5de3655605619ddfe77d5d48 100644
--- a/src/providers/ldap/sdap_async_initgroups_ad.c
+++ b/src/providers/ldap/sdap_async_initgroups_ad.c
@@ -648,6 +648,9 @@ static void sdap_ad_resolve_sids_done(struct tevent_req *subreq)
     talloc_zfree(subreq);
 
     if (ret == EOK && sdap_error == ENOENT && dp_error == DP_ERR_OK) {
+        /* Group was not found, we will ignore the error and continue with
+         * next group. This may happen for example if the group is built-in,
+         * but a custom search base is provided. */
         DEBUG(SSSDBG_CRIT_FAILURE,
               "Unable to resolve SID %s - will try next sid.\n",
               state->current_sid);
-- 
1.7.11.7

