Link to home
Start Free TrialLog in
Avatar of TechEli
TechEliFlag for Spain

asked on

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
Avatar of sammySeltzer
sammySeltzer
Flag of United States of America image

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.
Avatar of pritamdutt
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.
Avatar of TechEli

ASKER

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"
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?
Avatar of TechEli

ASKER

We used to authenticate a user is domain admin.
We have tried several users and we feel the same
Avatar of TechEli

ASKER

We've tested. If we change the home directory it changes correctly, but if we make a SetPassword us the error.
ASKER CERTIFIED SOLUTION
Avatar of pritamdutt
pritamdutt
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TechEli

ASKER

The user also has to be DOMAIN \ user and the option 0

Thank you very much! to all!
Avatar of TechEli

ASKER

Thank you very much!
You are welcome :)
Cheers!