Active Directory error '80070005' (GetObject)

B

Bohous

I create an ASP application for Windows 2003 server (Czech) with Exchange
2003. When I want to create new user in Active Directory from my application
- this error occurs:
Active Directory error 80070005'
General Access error denied

Web application runs under ADMINISTRATOR account and problematic code is:

Set oOU = GetObject("LDAP://test.test.cz/ou=skup,dc=test,dc=test,dc=cz")
Set oUser = oOU.Create("User", "cn=" & "Test" & " " & "Tester")
oUser.Put "sAMAccountName", "Test13"
oUser.SetInfo
 
J

Jeff Cochran

I create an ASP application for Windows 2003 server (Czech) with Exchange
2003. When I want to create new user in Active Directory from my application
- this error occurs:
Active Directory error 80070005'
General Access error denied

Web application runs under ADMINISTRATOR account and problematic code is:

Set oOU = GetObject("LDAP://test.test.cz/ou=skup,dc=test,dc=test,dc=cz")
Set oUser = oOU.Create("User", "cn=" & "Test" & " " & "Tester")
oUser.Put "sAMAccountName", "Test13"
oUser.SetInfo

Are you sure the code runs as admin?

Jeff
 

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,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top