summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/winbind_nss_linux.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c
index 9bf67c06a3..ea21391e98 100644
--- a/source3/nsswitch/winbind_nss_linux.c
+++ b/source3/nsswitch/winbind_nss_linux.c
@@ -943,10 +943,22 @@ _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
int num_gids = response.data.num_entries;
gid_t *gid_list = (gid_t *)response.extra_data.data;
+#ifdef DEBUG_NSS
+ fprintf(stderr, "[%5d]: initgroups %s: got NSS_STATUS_SUCCESS "
+ "and %d gids\n", getpid(),
+ user, num_gids);
+#endif
+
/* Copy group list to client */
for (i = 0; i < num_gids; i++) {
+#ifdef DEBUG_NSS
+ fprintf(stderr, "[%5d]: initgroups %s (%d): "
+ "processing gid %d \n", getpid(),
+ user, group, gid_list[i]);
+#endif
+
/* Skip primary group */
if (gid_list[i] == group) {