summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-02-15 12:10:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:58 -0500
commit1b16e8cbf94b8bac8fd993610be4222dd839e492 (patch)
treee3cd049e4baeb8d37bcffafde942160a723b8368 /source3/nsswitch
parent8bbe400c56b269b2d7d06cb275a970f7ac8018f4 (diff)
downloadsamba-1b16e8cbf94b8bac8fd993610be4222dd839e492.tar.gz
samba-1b16e8cbf94b8bac8fd993610be4222dd839e492.tar.bz2
samba-1b16e8cbf94b8bac8fd993610be4222dd839e492.zip
r21358: Some more debugging for _nss_winbind_initgroups_dyn() on Linux.
Guenther (This used to be commit 639b7989b3ad1438a443a33dc41115bcc90f72d2)
Diffstat (limited to 'source3/nsswitch')
-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) {