Is there a way to display our AD user information on a webpage

Posted on 2006-05-17
Last Modified: 2010-05-18
I would like to setup an employee directory webpage that is tied to our Active Directory information. Something that would self update so we would have to manually make changes.

Any ideas would be greatly appreciated.
Question by:bonadio171
    LVL 12

    Accepted Solution

    You can do this using ASP and vbscript.  something like this would get you started in the right direction:

    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    Dim Conn, strRS, RS, strConn
    Set Conn = Server.CreateObject("ADODB.Connection")
    Set RS = Server.CreateObject("ADODB.Recordset")
    Conn.Provider = "ADsDSOObject"
    strConn = "Active Directory Provider"
    Conn.Open strConn
    strRS = "SELECT givenname FROM 'LDAP://DOMAIN_NAME' WHERE objectClass = 'user' ORDER by name "
    RS.Open strRS, Conn,1,1

    While RS.EOF = False
    'f ("givenname"!=NULL)
    Response.Write "Name:" &RS("givenname")& "<br>"
    'end if


    Assisted Solution

    Have you thought of AD Directory Services

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now