locked
How to query Active Directory info in asp 2.0? RRS feed

  • Question

  • User218686162 posted

    I'm trying to get user information from AD using these classes:

    ActiveDirectoryMembershipProvider
    MembershipUserCollection

    However, they do not provide all the information I need.  Such as first and last name, address, etc.

    In ASP 1.1 I use System.DirectoryServices to query AD.  I was wondering if I still needed to do that, or if ASP 2.0 offered a better/more up-to-date solution.

    Thanks!

    Thursday, February 23, 2006 10:25 AM

All replies

  • User1354132231 posted
    I thought that for at least first and last that you could map them to givenName and sn in the config file for the membership provider.  I don't know about address.  Certainly, if you want all of this stuff to be presented as part of the Membership API, you will need to either customize the provider or check into the mapping settings available for you.

    If you don't care about the API exactly, then you can still query AD to your heart's content.
    Thursday, February 23, 2006 2:08 PM