c# Programming Glossary: objectcategory
Can you find an Active Directory User's Primary Group in C#? http://stackoverflow.com/questions/1179858/can-you-find-an-active-directory-users-primary-group-in-c null searcher.SearchRoot aDomainEntry searcher.Filter objectCategory Group objectSID escapedGroupSid.ToString searcher.PropertiesToLoad.Add..
How to determine if user account is enabled or disabled http://stackoverflow.com/questions/2005637/how-to-determine-if-user-account-is-enabled-or-disabled new DirectorySearcher directoryRoot objectClass User objectCategory Person SearchResultCollection results searcher.FindAll foreach..
Get List of Users From Active Directory In A Given AD Group http://stackoverflow.com/questions/513124/get-list-of-users-from-active-directory-in-a-given-ad-group First the search uses objectClass non indexed instead of objectCategory indexed . Huge performance issue with that query. You would.. two together depending on what you are trying to retrieve objectCategory person objectClass user All users no contacts objectCategory.. person objectClass user All users no contacts objectCategory person objectClass contact All contacts no users objectCategory..
Finding users that are members of two active directory groups http://stackoverflow.com/questions/6457715/finding-users-that-are-members-of-two-active-directory-groups 1.2.840.113556.1.4.1941 CN Grp1 OU MonOu DC societe DC fr objectCategory user dsLookFor.SearchScope SearchScope.Subtree dsLookFor.PropertiesToLoad.Add..
|