Cygwin: user profile: fetch roaming profile path via LDAP
Commit 649911fb40
avoids the
calls to NetUserGetGroups and NetUserGetLocalGroups since
these can take a lot of time. The same problem potentially
occurs when loading the user profile. The code fetches
the roaming profile path calling NetUserGetInfo, which also
can be rather slow.
To avoid this problem, fetch the profile patch using LDAP.
Also, don't bail out early if the user's registry hive already
exists. This may result in outdated information.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -36,6 +36,7 @@ static const PCWSTR std_user_attr[] =
|
||||
L"objectSid",
|
||||
L"primaryGroupID",
|
||||
L"uidNumber",
|
||||
L"profilePath",
|
||||
L"cygwinUnixUid", /* TODO */
|
||||
/* windows scheme */
|
||||
L"displayName",
|
||||
|
Reference in New Issue
Block a user