1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Active Directory Queries

Discussion in 'C#' started by ServerUnion, Apr 6, 2006.

  1. #1
    Does anyone have any code to query active directory via an ASP classic application. Basically, I want the application to verify that the user is logged into the network, and simply return the username they are using. This is done on a single signon network, so there is no interaction with the end user.

    thanks
    Natron
     
    ServerUnion, Apr 6, 2006 IP
  2. hansi

    hansi Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try a search "asp ldap". I'm not common to asp but i think there must be some help. Otherwise there is a mod_ldap for apache, if you use apache
     
    hansi, Apr 6, 2006 IP
  3. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have been looking over the LDAP API's just wasn't what I wanted.

    Setting Windows Integrated Authentication on IIS and using the following code works great.

    Request.ServerVariables("LOGON_USER")
     
    ServerUnion, Apr 6, 2006 IP
  4. SEO Jeff

    SEO Jeff Active Member

    Messages:
    534
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    90
    #4
    I would say if you were using .NET 2.0 and Visual Studio 2005 you could generate a managed class from the Active Directory WMI provider to easily access the AD schema.
     
    SEO Jeff, Apr 6, 2006 IP
  5. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That I do for the .NET application. This is to support a few legacy applications that wont be converted by the time AD is in place. Thanks...
     
    ServerUnion, Apr 7, 2006 IP