Top "Directoryservices" questions

System.

How do I loop through a PropertyCollection

Can anyone provide an example of how to loop through a System.DirectoryServices.PropertyCollection and output the property name and …

c# asp.net iis directoryservices
What are the different properties available in System.DirectoryServices.DirectorySearcher.PropertiesToLoad

Everything I've googled just says you can add them as a string array, but doesn't say what the available options …

c# active-directory directoryservices
How to determine all the groups a user belongs to (including nested groups) in ActiveDirectory and .NET 3.5

I have an application that uses ActiveDirecotry authorisation and it has been decided that it needs to support nested AD …

c# .net-3.5 active-directory directoryservices
How to retrieve SAMAccountName from Active Directory

I implemented a method that returns a list of Active Directory users, I would like to retrieve SAMAccountName like this …

c# active-directory directoryservices
Get Groups From OU using DirectoryServices.AccountManagement

I'd like to use AccountManagement to list all the groups in an Organizational Unit. The following snippet works with DirectoryServices …

c# .net active-directory directoryservices
How to get Active Directory Attributes not represented by the UserPrincipal class

What I mean is that right now I am using System.DirectoryServices.AccountManagement and if I use UserPrincipal class I …

c# active-directory directoryservices
How do I validate Active Directory creds over LDAP + SSL?

I'm trying to use the .NET 3.5 System.DirectoryServices.AccountManagement namespace to validate user credentials against our Active Directory LDAP server …

c# .net active-directory ldap directoryservices
How can I get a list of Organizational Units from Active Directory?

I've looked into the DirectoryServices class and it seems to be what I need, but I can't seem to find …

c# directoryservices
Difference between PrincipalSearcher and DirectorySearcher

I see Active Directory examples that use PrincipalSearcher and other examples that do the same thing but use DirectorySearcher. What …

c# active-directory directoryservices
Create an application pool that uses .NET 4.0

I use the following code to create a app pool: var metabasePath = string.Format(@"IIS://{0}/W3SVC/AppPools", serverName); DirectoryEntry …

c# iis-7 directoryservices application-pool