I am getting an error '800708c5' in a IIS script when trying to change a user account password via a web page. I have the following code:
[tt]
oldpassword = Oldpwd
newpassword = pwd1
SamID=left(user,instr(user,"@"-1)
response.write "Sam ID is " & SamID & "<BR> and User is " & user & "<br>"
Set namespace = getobject("LDAP:"
Set ADS_User = namespace.openDSObject("LDAP://mydc.domain.net/CN=" & SamID & ",OU=varteconline,DC=varteconline,DC=net", "domain\administrator", "deleted", 513)
if err.number<>0 then
errorstring = errorstring & "There was an error resetting the user password. Error 2C1.<br>"
else
response.write "old pwd is " & oldpassword &" and new is " & newpassword & ".<br>"
ADS_User.ChangePassword oldpassword,newpassword
response.write "Completed."
end if
[/tt]
When I run this code via IIS, the web page displays:
-------------------------------------------------
New PWD is abc123Sam ID is detest3
and User is detest3@domain.net
old pwd is password and new is abc123.
error '800708c5'
/x/ChangePassword.asp, line 266
-------------------------------------------------
Line 266 is ADS_User.ChangePassword oldpassword,newpassword
My domain has a minimum password of 1 character, does not have complex passwords required, does not have password history enabled. This is not running on the domain controller, but mydc.domain.net is a domain controller.
I know the call is getting to the DC, because if I put an invlaid password in for teh source, it gives me a different error.
What I am trying to do is allow my network users to change their passwords via a secure web site without needing anything more on the remote end then a web browser.
I do not have SSL running within my network (to the best of my knowledge), only between the user and the web server.
[tt]
oldpassword = Oldpwd
newpassword = pwd1
SamID=left(user,instr(user,"@"-1)
response.write "Sam ID is " & SamID & "<BR> and User is " & user & "<br>"
Set namespace = getobject("LDAP:"
Set ADS_User = namespace.openDSObject("LDAP://mydc.domain.net/CN=" & SamID & ",OU=varteconline,DC=varteconline,DC=net", "domain\administrator", "deleted", 513)
if err.number<>0 then
errorstring = errorstring & "There was an error resetting the user password. Error 2C1.<br>"
else
response.write "old pwd is " & oldpassword &" and new is " & newpassword & ".<br>"
ADS_User.ChangePassword oldpassword,newpassword
response.write "Completed."
end if
[/tt]
When I run this code via IIS, the web page displays:
-------------------------------------------------
New PWD is abc123Sam ID is detest3
and User is detest3@domain.net
old pwd is password and new is abc123.
error '800708c5'
/x/ChangePassword.asp, line 266
-------------------------------------------------
Line 266 is ADS_User.ChangePassword oldpassword,newpassword
My domain has a minimum password of 1 character, does not have complex passwords required, does not have password history enabled. This is not running on the domain controller, but mydc.domain.net is a domain controller.
I know the call is getting to the DC, because if I put an invlaid password in for teh source, it gives me a different error.
What I am trying to do is allow my network users to change their passwords via a secure web site without needing anything more on the remote end then a web browser.
I do not have SSL running within my network (to the best of my knowledge), only between the user and the web server.