[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

ASP and Active Directory problem

We have created a page in asp so that users can reset the password. It was working without any problem and now when you enter data the following error:

Active Directory mistake '80070005 '

It does not give any more information.

Someone could help me with this problem
0
TechEli
Asked:
TechEli
  • 5
  • 4
1 Solution
 
sammySeltzerCommented:
It could be anything but most likely a permission issue.

Even though you said it used to work, review with your local admin to see if there are any configuration changes.
0
 
pritamduttCommented:
The possible cause of this error is insufficient access to use Server.CreateObject Command in your ASP Script.

Please visit http://support.microsoft.com/kb/278013 
Hope this helps.
0
 
TechEliAuthor Commented:
I can not find the permissions issue.
This line runs smoothly and gives us back the information:

Set objRS = objConn.execute ("SELECT * FROM 'LDAP: / / mydomain' WHERE objectClass = 'user' and sAMAccountName = '" & Request.Form ("User") & "'")
September objProvider = GetObject ("LDAP:")
September objUser = objProvider.OpenDsObject (objRS.Fields ("ADsPath"), sAdmUser, sAdmPass, 0)
But when it comes to this line, we get the error:
objUser.SetPassword "222222"
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
pritamduttCommented:
In this case it appears to be that an ADSI call failed because the user account used for a directory BIND authentication hadn't enough permissions.

Are you facing this problem with all users or with one specific user?
0
 
TechEliAuthor Commented:
We used to authenticate a user is domain admin.
We have tried several users and we feel the same
0
 
TechEliAuthor Commented:
We've tested. If we change the home directory it changes correctly, but if we make a SetPassword us the error.
0
 
pritamduttCommented:
Also check for
1. is sAdmPass in sync with current password
and
2. using
September objUser = objProvider.OpenDsObject (objRS.Fields ("ADsPath"), sAdmUser, sAdmPass, 1)
instead of
September objUser = objProvider.OpenDsObject (objRS.Fields ("ADsPath"), sAdmUser, sAdmPass, 0)
0
 
TechEliAuthor Commented:
The user also has to be DOMAIN \ user and the option 0

Thank you very much! to all!
0
 
TechEliAuthor Commented:
Thank you very much!
0
 
pritamduttCommented:
You are welcome :)
Cheers!
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now