diff options
author | Günther Deschner <gd@samba.org> | 2007-02-15 12:10:57 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2007-02-15 12:10:57 +0000 |
commit | f8dc3506160995dddc728669fe26a4aa67bd01ea (patch) | |
tree | 986d238993a476ee77384eb4821af4988eae7b7d | |
parent | 264a7d660b002de4a3b00f16d482eab08cca8bc8 (diff) | |
download | samba-f8dc3506160995dddc728669fe26a4aa67bd01ea.tar.gz samba-f8dc3506160995dddc728669fe26a4aa67bd01ea.tar.xz samba-f8dc3506160995dddc728669fe26a4aa67bd01ea.zip |
r21358: Some more debugging for _nss_winbind_initgroups_dyn() on Linux.
Guenther
-rw-r--r-- | source/nsswitch/winbind_nss_linux.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/nsswitch/winbind_nss_linux.c b/source/nsswitch/winbind_nss_linux.c index 9bf67c06a3e..ea21391e980 100644 --- a/source/nsswitch/winbind_nss_linux.c +++ b/source/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) { |