]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: get_user_groups: fetch a user's group list from identification token
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 22 Feb 2019 17:31:03 +0000 (18:31 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 22 Feb 2019 20:58:51 +0000 (21:58 +0100)
commit649911fb40e45bc9a1ad8a3c28d90eec78c9cb7f
treeddccfde67116f5da5668ad38a495ddf883b46001
parent105fbdebdd3c65f96c7a95e1d5c527ce5790ac5e
Cygwin: get_user_groups: fetch a user's group list from identification token

NetUserGetGroups and NetUserGetLocalGroups sometimes take a lot of time
(up to more than 2 mins) for no apparent reason.

Call s4uauth to generate an identification token for the user and fetch
the group list from there.  This is *much* faster.

Keep the old code only for the sake of WOW64 on Vista and Windows 7,
which don't implement MsV1_0S4ULogon.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/sec_auth.cc
winsup/cygwin/wincap.cc
winsup/cygwin/wincap.h
This page took 0.032303 seconds and 5 git commands to generate.