Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS/IIS error '800708c5' in ADSI changing password

Status
Not open for further replies.

jdemars

Programmer
Nov 8, 2003
2
GB
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 &quot;Sam ID is &quot; & SamID & &quot;<BR> and User is &quot; & user & &quot;<br>&quot;

Set namespace = getobject(&quot;LDAP:&quot;)

Set ADS_User = namespace.openDSObject(&quot;LDAP://mydc.domain.net/CN=&quot; & SamID & &quot;,OU=varteconline,DC=varteconline,DC=net&quot;, &quot;domain\administrator&quot;, &quot;deleted&quot;, 513)

if err.number<>0 then
errorstring = errorstring & &quot;There was an error resetting the user password. Error 2C1.<br>&quot;
else

response.write &quot;old pwd is &quot; & oldpassword &&quot; and new is &quot; & newpassword & &quot;.<br>&quot;

ADS_User.ChangePassword oldpassword,newpassword
response.write &quot;Completed.&quot;
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top