Solved

ASP accessing exchange directory

Posted on 1998-03-31
5
178 Views
Last Modified: 2013-12-25
I need to create an ASP page that will list my exchange users in tabular format. When the user clicks on someones name then a detail page will come up.

I have tried to modify the find user script which is shipped with the web version of outlook in exchange 5.5 but have had all sorts of problems.

I'm now looking at the possibility of writing something from scratch, maybe using COM or even OLE-DB.

Does any one know how to access the exchange directory from an ASP page ?

Daniel.
0
Comment
Question by:DanielGarcia
  • 2
  • 2
5 Comments
 

Author Comment

by:DanielGarcia
ID: 1858163
Edited text of question
0
 
LVL 3

Expert Comment

by:percyn
ID: 1858164
You will have to use CDO (Active Messaging) to access the exhange server and give you the list of all the users for a particular exchnage domain.

0
 
LVL 1

Expert Comment

by:Technocrat062397
ID: 1858165
You could also use LDAP
0
 
LVL 3

Accepted Solution

by:
percyn earned 300 total points
ID: 1858166
Here is an example of how you can use ASP and ADSI. Just modify the search criteria to match your needs.

The code below will find mailboxes in the Exchange directory services whose 'City' property matches the search ‘criteria. The ADSI LDAP name for 'City' property is 'l.'

Dim objADOconn ' ADO connection object
Dim strADOQueryString ' ADO query string
Dim objRS  ' recordset object
Dim strCriteria  ' value used to search the directory tree
strCriteria = "Bellevue"

Set objADOconn = CreateObject("ADODB.Connection")
objADOconn.Provider = "ADSDSOObject"
objADOconn.Open "ADs Provider"
strADOQueryString = "<LDAP://" + strServer + ">;(&(objectClass=organizationalPerson)(l=" + strCriteria + "));cn,adspath;subtree"
Set objRS = objADOconn.Execute(strADOQueryString)
If Not objRS.EOF Then
 While Not objRS.EOF
   objNewDL.Add objRS.Fields(1).Value
  Response.Write objRS.Fields(0) + " added :)<BR>"
  objRS.MoveNext
 Wend
Else
  Response.Write "No mailboxes were added to the DL :(<BR>"
End If
objRS.Close


0
 

Author Comment

by:DanielGarcia
ID: 1858167
Thank you very much for your answer. Sorry it took a while to get back to you.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

707 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

18 Experts available now in Live!

Get 1:1 Help Now