Active Directory error '80070005' (GetObject)

Discussion in 'ASP General' started by Bohous, Sep 2, 2005.

  1. Bohous

    Bohous Guest

    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
    Bohous, Sep 2, 2005
    #1
    1. Advertising

  2. Bohous

    Jeff Cochran Guest

    On Fri, 2 Sep 2005 00:23:03 -0700, Bohous
    <> wrote:

    >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
    Jeff Cochran, Sep 2, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. NvrBst
    Replies:
    1
    Views:
    359
    NvrBst
    Nov 20, 2007
  2. Fredrik Nilsson

    Server object error 'ASP 0178 : 80070005'

    Fredrik Nilsson, Apr 3, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    111
    Fredrik Nilsson
    Apr 3, 2004
  3. Pai

    CDO.Message.1 error 80070005

    Pai, Dec 6, 2003, in forum: ASP General
    Replies:
    1
    Views:
    353
    Ray at
    Dec 6, 2003
  4. Fredrik Nilsson

    Server object error 'ASP 0178 : 80070005'

    Fredrik Nilsson, Apr 3, 2004, in forum: ASP General
    Replies:
    1
    Views:
    427
    Aaron Bertrand [MVP]
    Apr 3, 2004
  5. Jeff
    Replies:
    1
    Views:
    241
    Ray Costanzo [MVP]
    Feb 3, 2006
Loading...

Share This Page