Active Directory error '80070005' access denied RRS feed

  • Question

  • User-1236105033 posted

    I’m trying to update a user account on active directory(Ldap server) using classic ASP code. I get an error saying

    Active Directory error '80070005'

    Access Denied

    But the user account that I’m using in the code to update the AD has both Read/Write permissions. I am able to retrive the data using the user account(admin account) but not able to update any attribute value.  Below is the piece of code.

    If Not adoRS.EOF Then
    Set objUser = GetObject(adoRS.Fields(0).Value)
    objUser.Put "TMSpersonnelStatus", "N"
    objUser.SetInfo                                         // code fails here, while updating the field
    End If

    Wednesday, February 20, 2013 3:49 AM


  • User-166373564 posted

    Hi Tanmaya Pani

    You may receive an "Access Denied" error message when all the following conditions are true:

    • You manage a subset of attributes on user objects in Active Directory Users and Computers (ADUC).
    • You try to update the values of those attributes for which you have write access.

    A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article,

    please check whether it is helpful to fix this issue(http://support.microsoft.com/kb/894461).

    hope it helps you,

    With regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 26, 2013 1:40 AM