How to Change Windows NT Account Passwords Using Internet Information Server (IIS) 4.0ID: Q184619
|
This article describes how to configure Internet Information Server (IIS)
so that users can change their Windows NT passwords.
NOTE: Changing a password over the Internet is a potential security risk.
To configure IIS so users can change their Windows NT passwords, you can
use either the IISADMPWD virtual directory or the Microsoft Active
Directory Service Interfaces (ADSI) provided with IIS.
Using the built-in support:
IIS 4.0 ships with the ability to allow users to change their Windows NT
passwords and to notify users that their passwords are about to expire.
This is done by using the IISADMPWD virtual server that installs as
part of the default Web site. This feature is implemented as a set of .htr
files located in the <System>\System32\Inetsrv\Iisadmpwd directory and an
ISAPI extension named Ism.dll.
You can configure a site to support password changes by setting the
following properties on the site: PasswordCacheTTL, PasswordChangeFlags
and PasswordExpirePrenotifyDays. Refer to the IIS documentation for more
details on these properties.
To allow a user to change their password, provide a link in your Web page
to the following location:
http://servername/IISADMPWD/aexp.htr
Dim IIsObj, vDay
Set IIsObj = GetObject("IIS://LocalHost/W3SVC")
vDay = 10
Set new value
IIsObj.PasswordExpirePrenotifyDays = vDay
'Save the changes back to the data store
IIsObj.SetInfo
Q184665 : ADSI Calls From ASP Fail With (0x800401e4) or Invalid Syntax
' General Constants
strDomain ="<DOMAIN>"
strUser ="<USERNAME>"
strGroup = "<GROUP>"
' Create new user with password
Set oDomain = GetObject("WinNT://" & strDomain)
Set oUser = oDomain.Create ("User", strUser)
oUser.Password = "<PASSWORD>"
oUser.SetInfo
' Add user to specific group
Set oGroup = oDomain.GetObject("Group", strGroup)
oGroup.Add ("WinNT://" & strDomain & "/" & strUser)
http://www.microsoft.com/ntserver/nts/downloads/other/ADSI2/default.asp
Q184058 : Password Change Fails Using the IIS 4.0 Change Password Feature
Additional query words:
Keywords :
Version : winnt:4.0
Platform : winnt
Issue type : kbhowto
Last Reviewed: July 13, 1999