From 1b16e8cbf94b8bac8fd993610be4222dd839e492 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 15 Feb 2007 12:10:57 +0000 Subject: r21358: Some more debugging for _nss_winbind_initgroups_dyn() on Linux. Guenther (This used to be commit 639b7989b3ad1438a443a33dc41115bcc90f72d2) --- source3/nsswitch/winbind_nss_linux.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source3/nsswitch') 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) { -- cgit