Accessing Active Directory contact info via Intranet

Posted on 2007-11-30
Last Modified: 2012-05-05
I want to publish my AD contact informatiion on my Intranet, what's the procedure to accomplish this?
Question by:jtequia

Accepted Solution

mdefalco earned 63 total points
ID: 20386549
Do you know asp code? If so, you this code to pull all users from AD OU and all SUB OUs;

Then pust this to a table using asp, change the wscript echo to the response.write code, and you can select what info you want, such as name, and email
On Error Resume Next


Set objConnection = CreateObject("ADODB.Connection")

Set objCommand =   CreateObject("ADODB.Command")

objConnection.Provider = "ADsDSOObject"

objConnection.Open "Active Directory Provider"

Set objCommand.ActiveConnection = objConnection

objCommand.Properties("Page Size") = 1000

objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE 

objCommand.CommandText = _

    "SELECT Name FROM 'LDAP://ou=NA,dc=fabrikam,dc=com' WHERE objectCategory='user'"  

Set objRecordSet = objCommand.Execute


Do Until objRecordSet.EOF

    Wscript.Echo objRecordSet.Fields("Name").Value



Open in new window

LVL 11

Assisted Solution

by:Paul S
Paul S earned 62 total points
ID: 20390280
The previous comment has the right idea. You need to have a webserver running some type of server side scripting (perl, asp, php,, etc...). Then you need to write a simple form based application that will search for contact info on people. my company has a similar interface.

Expert Comment

ID: 20546164
Forced accept.

EE Admin

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

895 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