Solved

Accessing Active Directory contact info via Intranet

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

Accepted Solution

by:
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
 
Const ADS_SCOPE_SUBTREE = 2
 
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
 
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
    Wscript.Echo objRecordSet.Fields("Name").Value
    objRecordSet.MoveNext
Loop

Open in new window

0
 
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, asp.net, 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.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20546164
Forced accept.

Computer101
EE Admin
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

830 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