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)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 May 2013 17:53:29 +0000 (19:53 +0200)
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/idmap_ad.c

index 5bafa90299d7277323588b432df4d9b2a8085d7a..1ed6570b0e2f7f9c319e1a6bb86029ad4e3cb6d8 100644 (file)
@@ -323,7 +323,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;
                }
 
@@ -520,7 +520,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)) {