?
Solved

ASP accessing exchange directory

Posted on 1998-03-31
5
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1200 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

Give Your Engineering Team a Productivity Boost

Learn why container technology is so powerful and how it can provide your team with productivity gains and other benefits.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

762 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