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
TechEliAsked:
Who is Participating?
 
pritamduttConnect With a Mentor Commented:
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
 
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.