You can set properties in the metabase which will notify a client when his or her password has expired or is about to expire. This feature also gives the client the opportunity to change the password at the time of the notification, or to continue with the original request. These metabase properties are used to configure the implementation of the feature.
Note Administrators do not have to set any of these properties for this feature to work. These properties are automatically set in the metabase during IIS setup.
The following metabase properties control this feature.
- PasswordCacheTTL specifies the amount of time in seconds that a soon to be expired account (as defined by PasswordExpirePrenotifyDays) will be cached in order to prevent extraneous expiration notifications. That is, a user will be notified that his or her account will expire in (value of PasswordExpirePrenotifyDays) days at most once every (value of PasswordCacheTTL) seconds. The default setting is 600 (10 minutes).
- PasswordChangeFlags specifies the flags that control password expiration and password change processing between the server and client. The default value of 0 indicates that a password change is not allowed on an unsecured (that is, non-SSL) channel. A value of 1 indicates that a password change is allowed on an unsecured channel. A value of 2 indicates that password change notification is disabled. A value of 4 indicates that advance notification of password change is disabled.
- PasswordExpirePrenotifyDays specifies the number of days remaining before the client's password will expire, and is used to indicate when a password prenotify message will be sent. The default setting is 14.
These metabase properties can be set through the use of a script. An example of such a script follows:
<%
Dim IIsObj, vDay
Set IIsObj = GetObject("IIS://LocalHost/W3SVC")
'Get the value from the object
vDay = IIsObj.Get("PasswordExpirePrenotifyDays")
'Can also use object.property syntax
vDay = IIsObj.PasswordExpirePrenotifyDays
'Set the values
vDay = 10
'Put the values back in the object
IIsObj.Put "PasswordExpirePrenotifyDays", (vDay)
'Use optional object.property syntax
IIsObj.PasswordExpirePrenotifyDays = vDay
'Save the changes back to the metabase
IIsObj.SetInfo
%>
© 1997 by Microsoft Corporation. All rights reserved.