HOW TO: Retrieve Active Directory custom attributes in another domain using LDAP query

This blog post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team. When developing a custom claims provider, you may need to retrieve user information from Active Directory (AD) with LDAP query programmatically. You can add custom attributes by extending the AD schema. Those custom attributes should be usually in…

1