Microsoft KB Archive/831047

= FIX: You experience various problems when you use the Password Change pages in IIS 5.0 =

Article ID: 831047

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Services 5.0

-





Important This article contains information about editing the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the &quot;Configuration Backup/Restore&quot; Help topic in Microsoft Management Console (MMC).



SUMMARY
''You experience various problems when you use the Password Change pages that are included with Microsoft Windows 2000 Server Service Pack 4 (SP4). You can resolve these problems by installing the hotfix that is described in this article.''



SYMPTOMS
You may experience various problems when you use the Password Change pages that are included with Microsoft Windows 2000 Server Service Pack 4 (SP4):
 * The first letter of the account name for the user is truncated.
 * You cannot change passwords for users whose passwords must be changed at the next logon.
 * You cannot change passwords for users whose passwords have expired.
 * You cannot change passwords across forests.
 * You cannot use user names in an UPN format.



CAUSE
The Password Change Pages that are included with Windows 2000 Server Service Pack 4 use Active Server Pages (ASP) technology and Active Directory Service Interfaces (ADSI) technology to change user passwords. Technological limitations of ADSI cause most of the problems that are associated with the Password Change Pages.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
You must install Windows 2000 Service Pack 4 before you apply this hotfix.

Restart requirement
You do not have to restart your computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version            Size    File name --  05-Oct-2004  08:40                      5,735  Achg.htr 05-Oct-2004 08:40                      2,382  Aexp.htr 05-Oct-2004 08:40                      2,227  Aexp2.htr 05-Oct-2004 08:40                      2,829  Aexp2b.htr 05-Oct-2004 08:40                      1,974  Aexp3.htr 05-Oct-2004 08:40                      2,218  Aexp4.htr 05-Oct-2004 08:40                      2,837  Aexp4b.htr 05-Oct-2004 08:40  5.0.2195.6982      31,504  Iispwchg.dll 05-Oct-2004 08:40                      2,385  Text.htr



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
Warning If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk.

Note Always back up the metabase before you edit it.

After you apply the hotfix to update the files in the Iisadmpwd directory, follow these steps:  Register the Iispwchg.dll file in the Iisadmpwd directory. To do this, click Start, click Run, type regsvr32 c:\winnt\system32\inetsrv\iisadmpwd\iispwchg.dll, and then click OK. Configure the PasswordChangeFlags property in the metabase to make sure that the Password Change functionality is enabled. To do this, follow these steps:  Click Start, click Run, type cmd, and then click OK. Locate the C:\Inetpub\Adminscripts directory.</li> Type the following command, and then press ENTER:

cscript.exe adsutil.vbs set w3svc/passwordchangeflags

Note In this sample command,  is a placeholder for the value that you want to set for the PasswordChangeFlags property.</li></ol>

The following list includes the possible values for the PasswordChangeFlags property. You can use a combination of these values. <ul> 0

This value is the default value. This value indicates that you must use a Secure Sockets Layer (SSL) connection when you change the password.</li> 1

This value permits password changes on non-secure ports. This value is useful if SSL is not enabled.</li> 2

This value disables the Password Change functionality.</li> 4

This value disables the advance notification of password expiration.</li></ul> </li> Make sure that the virtual directory for the Iisadmpwd directory is correctly created and that the virtual directory points to the correct location. The correct location is System32\Inetsrv\Iisadmpwd. There is no requirement to have Anonymous Authentication enabled on the virtual directory. We recommend that you use the same authentication on this virtual directory as that of the application that redirects users to the virtual directory. ../269082</li> Make sure that the .htr files are mapped to the Asp.dll file in the &quot;AppMappings&quot; section for the Iisadmpwd directory. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> In IIS Manager Microsoft Management Console (MMC), right-click the iisadmpwd directory, and then click Properties.</li> Click the Virtual Directory tab.</li> On the Virtual Directory tab, click Configuration.</li> In the AppMappings section, look for a line that has .htr. That line is listed in the Extension field. Verify that the executable file that is listed to the right points to the Asp.dll file. If the link that has .htr that is listed in the Extension field does not exist, you must add it. If you must add this extension, click Add. If you must edit this extension, select the extension, and then click Edit.</li> For the executable file, click Browse, and then locate the Asp.dll file in the System32\Inetsrv directory.</li> In the Extension field, type .htr .</li> Set the Limit verbs to GET,POST.</li> Click OK to save the changes, and then close all Properties windows.</li></ol> </li> <li>Verify that the following metabase entries are correctly set: </li> <li>By default, the metabase entries that are related to the pages that are previously described are located at the W3SVC level in the registry and do not have to be modified. However, if the metabase entries have to be changed or have to be verified, the application Mdutil.exe can be used as follows. The application Mdutil.exe is available on the Windows 2000 Support CD. <ol style="list-style-type: lower-alpha;"> <li>Copy Mdutil.exe to the server that is running IIS.</li> <li>Open a CMD window.</li> <li>Locate the folder that contains Mdutil.exe.</li> <li>To verify the current value in the metabase, you can use the following:

Mdutil.exe get w3svc/.

For example, type the following:

Mdutil.exe get w3svc/AuthChangeUrl </li> <li>To change the value, you can use the command just as you previously did. However, replace &quot;get&quot; with &quot;set.&quot; Also, specify the value at the end.</li></ol>

If you have to change either PasswordChangeFlags or PasswordExpirePreNotifyDays, you have to use the Adsutil.vbs script to configure these metabase entries. The Adsutil.vbs script is located in the Inetpub\Adminscripts directory on your system. To use the Adsutil.vbs script to configure these metabase entries, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Open a CMD window.</li> <li>Locate the C:\Inetpub\Adminscripts folder.</li> <li>To set the values, you can use the following:

Cscript.exe adsutil.vbs set w3svc/

For example, type the following:

Cscript.exe adsutil.vbs set w3svc/PasswordChangeFlags 1 </li> <li>To examine the values, you can use the same command as you previously used. However, replace &quot;set&quot; with &quot;get.&quot; Do not appended the value at the end.</li></ol> </li></ol>

Additional query words: iisadmpwd htr asp owa password change

<div class="references_section">