forked from git-for-windows/msys2-runtime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cygheap.h (cygheap_user::sid): Return reference to cygpsid rather
than PSID. (cygheap_user::saved_sid): Ditto. (cygheap_pwdgrp::cache_t): New type. (cygheap_pwdgrp::caching): Convert to cache_t. (cygheap_pwdgrp::nss_db_caching): Change accordingly. (cygheap_pwdgrp::nss_db_full_caching): New inline method. * grp.cc (internal_getgroups): Reinvent. Take cyg_ldap pointer as third parameter and use throughout. (getgroups32): Call internal_getgroups. * pwdgrp.h (internal_getgroups): Declare. * uinfo.cc (internal_getlogin): Partial rewrite to accommodate having no connection to the DC. Give primary group from user token more weight. Generate group entries for all groups in the user token if caching is set to NSS_FULL_CACHING. (cygheap_pwdgrp::init): Initialize caching to NSS_FULL_CACHING. (cygheap_pwdgrp::nss_init_line): Handle "db_cache: full". (pwdgrp::add_account_from_windows): Fix group handling in non-caching mode. (pwdgrp::fetch_account_from_windows): Default primary group for the current user to primary group from user token. Check for primary domain first after LookupAccountSid failed.
- Loading branch information
1 parent
b39fa2c
commit 6cc7c92
Showing
5 changed files
with
138 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
2014-02-28 Corinna Vinschen <[email protected]> | ||
|
||
* cygheap.h (cygheap_user::sid): Return reference to cygpsid rather | ||
than PSID. | ||
(cygheap_user::saved_sid): Ditto. | ||
(cygheap_pwdgrp::cache_t): New type. | ||
(cygheap_pwdgrp::caching): Convert to cache_t. | ||
(cygheap_pwdgrp::nss_db_caching): Change accordingly. | ||
(cygheap_pwdgrp::nss_db_full_caching): New inline method. | ||
* grp.cc (internal_getgroups): Reinvent. Take cyg_ldap pointer as | ||
third parameter and use throughout. | ||
(getgroups32): Call internal_getgroups. | ||
* pwdgrp.h (internal_getgroups): Declare. | ||
* uinfo.cc (internal_getlogin): Partial rewrite to accommodate having | ||
no connection to the DC. Give primary group from user token more | ||
weight. Generate group entries for all groups in the user token if | ||
caching is set to NSS_FULL_CACHING. | ||
(cygheap_pwdgrp::init): Initialize caching to NSS_FULL_CACHING. | ||
(cygheap_pwdgrp::nss_init_line): Handle "db_cache: full". | ||
(pwdgrp::add_account_from_windows): Fix group handling in non-caching | ||
mode. | ||
(pwdgrp::fetch_account_from_windows): Default primary group for the | ||
current user to primary group from user token. Check for primary | ||
domain first after LookupAccountSid failed. | ||
|
||
2014-02-27 Corinna Vinschen <[email protected]> | ||
|
||
* autoload.cc (CheckTokenMembership): Import. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters