diff options
author | Günther Deschner <gd@samba.org> | 2009-06-06 01:50:17 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-06-06 02:00:36 +0200 |
commit | f19c9147a5f2222ce8c21d8e194ac7de1a0a196f (patch) | |
tree | f0a73b9f43416164e9c8e4a21ddc9e346dcab9bf /source3/winbindd/winbindd_group.c | |
parent | 0bf56f5cb31accabb6a3ba81c18217ae24793218 (diff) | |
download | samba-f19c9147a5f2222ce8c21d8e194ac7de1a0a196f.tar.gz samba-f19c9147a5f2222ce8c21d8e194ac7de1a0a196f.tar.bz2 samba-f19c9147a5f2222ce8c21d8e194ac7de1a0a196f.zip |
s3-winbindd: add some debug statements while tracking down a bug.
Guenther
Diffstat (limited to 'source3/winbindd/winbindd_group.c')
-rw-r--r-- | source3/winbindd/winbindd_group.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_group.c b/source3/winbindd/winbindd_group.c index 3273a288e2..913f63112f 100644 --- a/source3/winbindd/winbindd_group.c +++ b/source3/winbindd/winbindd_group.c @@ -460,6 +460,8 @@ static NTSTATUS expand_groups( TALLOC_CTX *ctx, *new_glist = NULL; *n_new_glist = 0; + DEBUG(10,("expand_groups:\n")); + for ( i=0; i<n_glist; i++ ) { tmp_ctx = talloc_new( ctx ); @@ -469,8 +471,12 @@ static NTSTATUS expand_groups( TALLOC_CTX *ctx, &glist[i], &num_names, &sid_mem, &names, &name_types); - if ( !NT_STATUS_IS_OK(status) ) + if (!NT_STATUS_IS_OK(status)) { + DEBUG(10,("expand_groups: lookup_groupmem for " + "sid %s failed with: %s\n", + sid_string_dbg(&glist[i]), nt_errstr(status))); goto out; + } /* Separate users and groups into two lists */ @@ -514,6 +520,11 @@ static NTSTATUS expand_groups( TALLOC_CTX *ctx, out: TALLOC_FREE( tmp_ctx ); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(10,("expand_groups: returning with %s\n", + nt_errstr(status))); + } + return status; } @@ -726,7 +737,8 @@ done: talloc_destroy(mem_ctx); - DEBUG(10, ("fill_grent_mem returning %d\n", result)); + DEBUG(10,("fill_grent_mem returning %s\n", + result == true ? "true" : "false")); return result; } |