-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DirectoryServicesCOMException - Unexpected error occurred while getting domain names information #87
Comments
Good news, I found the root cause and upcoming version 14 will fix it. If you are interested, here are the details about the bug: ContextThe issue occurs when LDAPCP uses the LDAP (AD) connection of the SharePoint server. Line 1290 in a5c1646
Reading this property triggers an authenticated LDAP call to the AD server, using the creds of the application pool account (LDAPCP does privilege elevation). Root causeBut this privilege elevation was missing in 2 entry points: in LDAPCP.GetClaimTypeForUserKey() and LDAPCP.GetUserKeyForEntity(). SolutionI added the missing privilege elevation in method LDAPCP.GetUserKeyForEntity(): Lines 1953 to 1956 in a5c1646
But doing so in LDAPCP.GetClaimTypeForUserKey() is not possible: it causes a StackOverflowException. Upcoming version 14 will contain the fix. I will publish it as soon as possible, with hopefully a pre-release today if unit tests pass. |
The pre-release that fixes this bug is https://github.com/Yvand/LDAPCP/releases/tag/14.0.20190821.952 |
Randomly, LDAPCP fails to get domain names information and records the following error:
As a consequence, entities that use dynamic domain name tokens are missing the domain name.
For example, entity value will be "\groupName" instead of "contoso.local\groupName"
The text was updated successfully, but these errors were encountered: