winbind/idmap_ad: be verbose about the user that we fail to map
[samba.git] / 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)) {