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
Tanmaya Pani
0 Points
1 Post
Active Directory error '80070005' access denied
Feb 20, 2013 07:49 AM|LINK
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
Angie xu - M...
All-Star
18638 Points
1583 Posts
Microsoft
Re: Active Directory error '80070005' access denied
Feb 26, 2013 05:40 AM|LINK
Hi Tanmaya Pani
You may receive an "Access Denied" error message when all the following conditions are true:
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
Feedback to us
Develop and promote your apps in Windows Store