Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I get user information from MS Exchange

Posted on 2001-06-06
4
Medium Priority
?
191 Views
Last Modified: 2006-11-17
I am developing a ASP/Intranet help-desk application.  I would like to pull information directly from the MS Exchange database of current system users.

I have seen code from various web sites but do not understand all of the requirements.  I also do not know exactly which servers the code page must reside to retrieve the information (exchange object).

I have tried the code below to determine the current user logged to a workstation, and then retrieve and object from MS Exchange with user information.

 'get the user logon name
 authUser = Request.ServerVariables("AUTH_USER")
 'the server variable will be in the following format: DOMAIN\logon
 'so we have to remove the MCDOMAIN1\ part
 logonName = Right(authUser, Len(authUser) - 10)
 
 'get the user's object
 Set user = GetObject("WinNT://ABCXYZ.org/" & logonName)

The code above worked on another system, I was associated with.  Are there any sources on this topic, or do you have a specific code solution?

Technical Info.  Windows NT 4.0 & 5.0, Client for MS Networks, MS Exchange (TCP-IP), User Mail serviced by Outlook 98/2000.  System is fire-walled.
0
Comment
Question by:lauciricad
  • 3
4 Comments
 
LVL 18

Accepted Solution

by:
mgfranz earned 800 total points
ID: 6160573
Are you running Exchange 2000?  Do you have Outlook Web Access installed?  If so, that is all you need to get info from the .edb file.
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6161480
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6161486
0
 

Author Comment

by:lauciricad
ID: 6191804
See previous comments
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

782 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