winbind/idmap_ad: be verbose about the user that we fail to map
authorBjörn Jacke <bj@sernet.de>
Tue, 14 May 2013 14:51:28 +0000 (16:51 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Aug 2013 07:09:44 +0000 (09:09 +0200)
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit f08205be7003f6c0a15fd5fd99d01951164ad15c)

Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 17794737fedf095212cf45920dd1e29b5a1a9fa0)

source3/winbindd/idmap_ad.c

index cf15f038ca0caf40cdaf7a022bc9844772d04ad7..2b35a4f59ab0f671e83cd071640237d13da698b0 100644 (file)
@@ -457,7 +457,7 @@ again:
                                                 ctx->ad_schema->posix_gidnumber_attr,
                                     &id)) 
                {
-                       DEBUG(1, ("Could not get unix ID\n"));
+                       DEBUG(1, ("Could not get SID for unix ID %u\n", (unsigned) id));
                        continue;
                }
 
@@ -654,7 +654,8 @@ again:
                                                 ctx->ad_schema->posix_gidnumber_attr,
                                     &id)) 
                {
-                       DEBUG(1, ("Could not get unix ID\n"));
+                       DEBUG(1, ("Could not get unix ID for SID %s\n",
+                               sid_string_dbg(map->sid)));
                        continue;
                }
                if (!idmap_unix_id_is_in_range(id, dom)) {