?
Solved

Using ADSI Across Domains

Posted on 2006-03-22
2
Medium Priority
?
306 Views
Last Modified: 2010-08-05

Hello,

I think I'm chasing my tail here and wanted some clarification.

I have a web program that needs to get information about the user from AD. I get the users DN and pass it to functions like:

Function ADUserData(strDN)

Set objADSI = GetObject("LDAP://" & strDN)
Session("Username") = objADSI.DisplayName
Set objADSI = Nothing

I have created all my AD functions into a ActiveX DLL and published as a com + object, running under a user account for its identity.

It is my understanding that all the functions called from this dll will be executed under the user context.

All works fine for users in the same domain. However when a user from a different domain visits the site, get the following error:

error 80005000 automation error

The account that the dll is running under is a domain admin has been granted rights in the other domain. If I put this function into a vbscript it works fine when run by the same user that is the identity of the DLL. What gives?

Thanks!
0
Comment
Question by:mooka
2 Comments
 

Author Comment

by:mooka
ID: 16264210

Nevermind!

wasnt security, just bad error logging. I was getting the objADSI.Manager attribute when there wasn't any.
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 16454698
mooka,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 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