reading ADSI-content

T

t.schwenk

hi ng!

in our intranet i try to get the users full name from ADSI.
so i connect to a ad-provider with an enforced admin-logon
(see ms knowledge-base 'LoginAdmin.dll') like that:

Set objLogon = Server.CreateObject _
("LoginAdmin.ImpersonateUser")
objLogon.Logon "usernameAdmin", "pwd", "ourDomain"
Set objLDAP = GetObject("WinNT:")

now i connect to a user-object again with the same
authentication as in the connection to the provider:

Set objUser = objLDAP.OpenDSObject _
("WinNT://equsec/" & sUser, _
"usernameAdmin", "pwd", _
ADS_SECURE_AUTHENTICATION)

now i want to read the property 'FullName' from the
objUser with

response.write objUser.FullName

and THAT produces an error: general access denied
(80070005).

well, i connected to the provider AND the user-object with
the very SAME admin-a/c... why can't i read the property
of the object, then??
how can i get there? the admin-a/c has all rights.

i'm totally at sea :-(

grateful for any help or hint!
thanks.


thilo


p.s.: please excuse my not providing any e-mail-address,
but due to increasing numbers of spam- and virus-mails in
my inbox i ask for your kind understanding.
thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top