diff options
author | Volker Lendecke <vl@samba.org> | 2015-10-09 12:18:53 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-10-12 14:01:49 +0200 |
commit | 2f7bee43d8bcb8cc5205b159862e57954e4fc26c (patch) | |
tree | 9de29c904be4b26fd9a386e0966588aca488c2af /nsswitch/wbinfo.c | |
parent | b95b2be8451e7804704dc2046b6c3eb35f79220e (diff) | |
download | samba-2f7bee43d8bcb8cc5205b159862e57954e4fc26c.tar.gz |
wbinfo: make --verbose --pam-logon print sids
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Oct 12 14:01:50 CEST 2015 on sn-devel-104
Diffstat (limited to 'nsswitch/wbinfo.c')
-rw-r--r-- | nsswitch/wbinfo.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index f45d7b58335..330fa910938 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -1831,6 +1831,7 @@ static bool wbinfo_pam_logon(char *username, bool verbose) if (verbose && (info != NULL)) { struct wbcAuthUserInfo *i = info->info; + uint32_t j; if (i->account_name != NULL) { d_printf("account_name: %s\n", i->account_name); @@ -1863,6 +1864,15 @@ static bool wbinfo_pam_logon(char *username, bool verbose) d_printf("home_drive: %s\n", i->home_drive); } + d_printf("sids:"); + + for (j=0; j<i->num_sids; j++) { + char buf[WBC_SID_STRING_BUFLEN]; + wbcSidToStringBuf(&i->sids[j].sid, buf, sizeof(buf)); + d_printf(" %s", buf); + } + d_printf("\n"); + wbcFreeMemory(info); info = NULL; } |