Bryan Berns
2015-04-17 02:50:04 UTC
Posting here because that's what Corinna told me to do.
So I was looking into the issue I found with Cygwin not caching
orphaned / unknown groups. At least for my test case, this appears to
be rooted in the RID getting striped from the end of the SID just
prior to the line being outputted (line 2464 from the exert below)
within fetch_account_from_windows().
uinfo.cc: 2460: /* Check if we know the domain. If so, create a passwd/group
uinfo.cc: 2461: entry with domain prefix and RID as username. */
uinfo.cc: 2462: PDS_DOMAIN_TRUSTSW td = NULL;
uinfo.cc: 2463:
uinfo.cc: 2464: sid_sub_auth_count (sid) = sid_sub_auth_count (sid) - 1;
It's not clear to me, in general, why we're interested in creating a
"passwd/group entry with domain prefix and RID as username". There
are quite a few nuances and special cases in this function so I feel
like any attempt on my part to produce a patch on this will likely be
completely errant. Might someone familiar with check weigh-in on
these findings thus far?
I've attached my test script (Windows Batch).
So I was looking into the issue I found with Cygwin not caching
orphaned / unknown groups. At least for my test case, this appears to
be rooted in the RID getting striped from the end of the SID just
prior to the line being outputted (line 2464 from the exert below)
within fetch_account_from_windows().
uinfo.cc: 2460: /* Check if we know the domain. If so, create a passwd/group
uinfo.cc: 2461: entry with domain prefix and RID as username. */
uinfo.cc: 2462: PDS_DOMAIN_TRUSTSW td = NULL;
uinfo.cc: 2463:
uinfo.cc: 2464: sid_sub_auth_count (sid) = sid_sub_auth_count (sid) - 1;
It's not clear to me, in general, why we're interested in creating a
"passwd/group entry with domain prefix and RID as username". There
are quite a few nuances and special cases in this function so I feel
like any attempt on my part to produce a patch on this will likely be
completely errant. Might someone familiar with check weigh-in on
these findings thus far?
I've attached my test script (Windows Batch).