Link to home
Start Free TrialLog in
Avatar of mooka
mooka

asked on

Using ADSI Across Domains


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!
Avatar of mooka
mooka

ASKER


Nevermind!

wasnt security, just bad error logging. I was getting the objADSI.Manager attribute when there wasn't any.
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial