I'm trying to get user GUID from Active Directory. My code:
DirectoryEntry entry = new DirectoryEntry("WinNT://DOMAIN/UserName");
Console.WriteLine("The GUID of the ADS object:" + entry.Guid);
Console.WriteLine("The Native GUID of the ADS object:" + entry.NativeGuid);
The code above always returns d83f1060-1e71-11cf-b1f3-02608c9e7553, regardless of the user and domain.
Is it possible to get user GUID using WinNT protocol?