You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using AD on premises as identity system on Windows machines
After migrating to .net 9 we see exceptions in lookup of roles in AD
Invalid URI: The hostname could not be parsed.'
Reproduction Steps
These 4 lines will recreate the problem
using var domain = new PrincipalContext(ContextType.Domain);
using var user = UserPrincipal.FindByIdentity(domain, Environment.UserName);
var groups = user?.GetGroups();
Console.WriteLine(string.Join($"{Environment.NewLine}", groups));
This will fail when referencing this version of AD libs
Description
We are using AD on premises as identity system on Windows machines
After migrating to .net 9 we see exceptions in lookup of roles in AD
Invalid URI: The hostname could not be parsed.'
Reproduction Steps
These 4 lines will recreate the problem
using var domain = new PrincipalContext(ContextType.Domain);
using var user = UserPrincipal.FindByIdentity(domain, Environment.UserName);
var groups = user?.GetGroups();
Console.WriteLine(string.Join($"{Environment.NewLine}", groups));
This will fail when referencing this version of AD libs
When referencing .net 8 it works fine
Expected behavior
Return of roles for user
Actual behavior
Exception
Invalid URI: The hostname could not be parsed.'
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: