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; jnum_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; }