Fix for issue dotnet/corefx#38105 - System.DirectoryServices GroupPrincipal.GetMember...
authorRobSiklos <robwork@siklos.ca>
Fri, 31 May 2019 16:41:19 +0000 (12:41 -0400)
committerRobSiklos <robwork@siklos.ca>
Fri, 31 May 2019 16:41:19 +0000 (12:41 -0400)
commitd2690f109a100f8a4246d35bbc61286c49939167
treee459aa00530e1d459ac8f971757873840d9cca80
parentf5181149b453ce36dfdfb6c86914cbb7818ea0bb
Fix for issue dotnet/corefx#38105 - System.DirectoryServices GroupPrincipal.GetMembers() fails with PrincipalOperationException if code running outside domain/forest.

We are now catching failed calls to DsGetDcName, because the info returned by that call isn't essential to everything working.

Commit migrated from https://github.com/dotnet/corefx/commit/36c183ab9f6eace0dfd57e71b470bfea91533857
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADStoreCtx.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Utils.cs