Archive | Microsoft Active Directory RSS feed for this section

Binding to Active Directory: AD Connections De-mystified, Part 5

Note: This series covers Active Directory connection strings, often referred to as bind paths, with the goal of simplifying the process of creating an AD bind path. A significant amount of the information for this series comes from the wonderful AD programming book, The .NET Developer’s Guide to Directory Services Programming, by Ryan Dunn and Joe Kaplan. The LDAP ADsPath article [...]

Read full story Comments { 0 }

Binding to Active Directory: AD Connections De-mystified, Part 4

Note: This series covers Active Directory connection strings, often referred to as bind paths, with the goal of simplifying the process of creating an AD bind path. A significant amount of the information for this series comes from the wonderful AD programming book, The .NET Developer’s Guide to Directory Services Programming, by Ryan Dunn and Joe Kaplan. The LDAP ADsPath article [...]

Read full story Comments { 1 }

Binding to Active Directory: AD Connections De-mystified, Part 3

Note: This series covers Active Directory connection strings, often referred to as bind paths, with the goal of simplifying the process of creating an AD bind path. A significant amount of the information for this series comes from the wonderful AD programming book, The .NET Developer’s Guide to Directory Services Programming, by Ryan Dunn and Joe Kaplan. The LDAP ADsPath article [...]

Read full story Comments { 2 }

Binding to Active Directory: AD Connections De-mystified, Part 2

Note: This series covers Active Directory connection strings, often referred to as bind paths, with the goal of simplifying the process of creating an AD bind path. A significant amount of the information for this series comes from the wonderful AD programming book, The .NET Developer’s Guide to Directory Services Programming, by Ryan Dunn and Joe Kaplan. The [...]

Read full story Comments { 3 }

Binding to Active Directory: AD Connections De-mystified, Part 1

Note: This series covers Active Directory connection strings, often referred to as bind paths, with the goal of simplifying the process of creating an AD bind path. A significant amount of the information for this series comes from the wonderful AD programming book, The .NET Developer’s Guide to Directory Services Programming, by Ryan Dunn and Joe Kaplan. The LDAP ADsPath article [...]

Read full story Comments { 3 }

Unknown error 0×80005000 When Using a New PrincipalContext in .NET

I am working with the System.DirectoryServices.AccountManagement namespace’s PrincipalContext class to bind to Active Directory and perform operations against the directory. A problem cropped up recently that took a bit of sleuthing to solve and I want to share the solution in hopes that it will save someone else a bit of a headache. I received the [...]

Read full story Comments { 0 }

Active Directory and LDAP Tips and Tricks: Capitalize the Provider in Connection Strings

We see issues from time to time with LDAP connection strings for Active Directory failing to work even when folks know the connection string and bind credentials are correct. Even if you copy a distinguished name value from a tool like ADSIEdit or Active Directory Explorer, many times you must specify a provider in the [...]

Read full story Comments { 0 }

Adding Windows Computer Accounts from Active Directory to NTFS ACLs to Control Permissions

When writing web applications, you often must grant permissions to an application to do something on other machines in a Windows domain or forest. IIS 6, 7 and 7.5 all allow you to configure IIS application pools to run under specific, rather secure identities like NETWORK SERVICE and the Application Pool Identity. When accessing resources [...]

Read full story Comments { 0 }

Weird Attribute Names in Active Directory

For the most part, the LDAP names of Active Directory attributes are the same or very similar to their English-language descriptions. However, there are a few annoying exceptions that I’ve summarized here, including one of the more weird attribute names for the City attribute. The City attribute uses the letter “L” as its LDAP display [...]

Read full story Comments { 0 }

Microsoft .NET AuthenticablePrincipal.LastPasswordSet Value Trick

The AuthenticablePrincipal.LastPasswordSet property in the .NET library’s System.DirectoryServices.AccountManagement namespace specifies the last date and time that the password was set for an account. We use this property to read a number of pieces of data about Active Directory user accounts but there is an interesting anomaly with the LastPasswordSet property in the AuthenticablePrincipal wrapper class. The LastPasswordSet property [...]

Read full story Comments { 0 }