-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Description
Hi!
When GroupPrincipal.GetMembers used and 389 port blocked on machine (and 636 specified on connection string)
Method not working
problem is here:
https://github.com/dotnet/runtime/blob/main/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/AD/ADStoreCtx.cs
protected virtual void LoadDomainInfo()
Reproduction Steps
var options = Negotiate | SecureSocketLayer;
using var context = new PrincipalContext( ContextType.Domain, "domain:636", "DC=domain", options);
using (var indentity = GroupPrincipal.FindByIdentity(context, "Group"))
{
var tmp = indentity.GetMembers(true).First(); // we will wall
}
Expected behavior
When domain specified, used same port (LDAPS) communication
Actual behavior
Method failed when 389 blocked
Regression?
No response
Known Workarounds
No response
Configuration
- Net462, NetCore31, NetCore5 and other
- Windows
- Debug, Release
Other information
No response
