How to make IISADMPWD work in MOSS 2007 website


Backgound


In IIS5.0 or IIS6.0, with the IISADMPWD feature, we can easily change an expired user’s password via several ASP pages. For more information about this feature, please refer to http://support.microsoft.com/kb/833734


Symptom


If you create the IISADMPWD virtual directory under a Sharepoint website, you may find the user name is missed on the changing password ASP page as the below picture.


iisadmpwd1.png


 


Even you input the account name and new password, you will still fail after clicking “OK” button.


Root Cause


By default the WildCard of “C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll” is configured for Sharepoint website and it is required, and the IISADMPWD virtual directory will automatically inherit this configuration during the creation. In this situation, the behavior of these ASP pages will be affected by the ASP.NET filter. Actually, we don’t need this Wildcard configuration for IISADMPWD virtual directory.


Solution


Remove this Wildcard configuration for IISADMPWD virtual directory


1.       Right click the IISADMPWD virtual directory and select Properties


2.       On “Virtual Directory” tab, click “Configuration…” button


3.       Remove any items in “Wildcard application maps” section


More Information


You may still fail with error number 5 after you remove the wildcard for IISADMPWD virtual directory. Please refer to the following picture


 


iisadmpwd2.png


 


This behavior is related to the PasswordChangeFlags parameter. The Sharepoint filter does not accept that value from root level W3SVC, even though we tried IISADMPWD for other site where it works. To make it work, we should explicitly set this value for the Sharepoint website.


cscript.exe adsutil.vbs set w3svc/<THE ID FOR SHAREPOINT SITE>/PasswordChangeFlags [value]


 References


Installing Wildcard Application Mappings (IIS 6.0): http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx


Setting Application Mappings (IIS 6.0): http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/ad520e25-877c-4764-bfe5-a9d5a9a5d3bb.mspx


 


Regards,


 


ZhiXing Lv

Comments (1)

  1. JustIncase says:

    So a few years later than this post.  But have someone on WSS3.0 for MS Business Portal and this got IISADMPWD running!

    Thank you!!