problem using WinNT provider and GetObject- PLEASE HELP

B

Blake

single ASP page running on IIS 5 on a Native Windows 2000 AD:

<%Set usr = GetObject("WinNT://LONGWOOD/duffeyba,user")%>

(the IIS machine is a member server)

The page is running as the user 'duffeyba'.


I am getting this result:

Microsoft VBScript runtime error '800a0046'
Permission denied: 'GetObject'

/cyphir/auth/test4.asp, line 1



This code works fine our our test domain, but fails on our production
domain. I can't see what the problem is.

Any ideas appreciated.
 
B

Blake

Authenticated ASP page:

strNTName = "samh"
Set oUser = GetObject("WinNT://LONGWOOD/" & strNTName)

Gives:
error '80070035'

Works on one domain, not on the 2nd.

Any ideas?

Blake
 
E

Egbert Nierop \(MVP for IIS\)

Is this code running for the **current** user or for another? If the latter,
the permission denied is logical.
 

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,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top