Sorry, that's not what I was referring to. The bug that microsoft confirmed is that if you search for a user that does not exist, rather than return false, the DirectoryEntry.Exists method will throw an exception.
However, if I am searching for a user that DOES exist, but is in the OU=Disabled/Inactive Users, the method still throws an exception, which I assume means that this user cannot be found (I can't be sure because of the previous bug, since the cause of the
exception is not stated). I want to know what could cause these users to be considered non-existent.
irfanj
Member
10 Points
8 Posts
Re: DirectoryEntry.Exists not working as expected
Nov 24, 2011 02:43 PM|LINK
Sorry, that's not what I was referring to. The bug that microsoft confirmed is that if you search for a user that does not exist, rather than return false, the DirectoryEntry.Exists method will throw an exception.
However, if I am searching for a user that DOES exist, but is in the OU=Disabled/Inactive Users, the method still throws an exception, which I assume means that this user cannot be found (I can't be sure because of the previous bug, since the cause of the exception is not stated). I want to know what could cause these users to be considered non-existent.
Thanks