%@ Language=VBScript %> <% Option Explicit %> <% '------------------------------------------------------------------------- ' user_setpassword.asp : Set password the specified user ' ' Copyright (c) Microsoft Corporation. All rights reserved. ' ' Date Description ' 15-jan-01 Creation date '------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- ' Name of this source file Const SOURCE_FILE = "User_setpassword.asp" ' Flag to toggle optional tracing output Const ENABLE_TRACING = TRUE Dim rc 'framework variables Dim page 'framework variables '------------------------------------------------------------------------- ' Global Form Variables '------------------------------------------------------------------------- Dim F_strFirstUserName 'selected item in OTS page First Name Dim F_strNewpwd 'New password Dim F_strConfirmpwd 'Confirm Password '------------------------------------------------------------------------- 'Start of localization content '------------------------------------------------------------------------- Dim L_PAGETITLE_TEXT Dim L_NEWPASSWORD_TEXT Dim L_CONFIRMPASSWORD_TEXT Dim L_PASSWORDNOTMATCH_ERRORMESSAGE Dim L_PASSWORD_COMPLEXITY_ERRORMESSAGE Dim L_ADSI_ERRORMESSAGE Dim L_COMPUTERNAME_ERRORMESSAGE Dim L_USERDOSENOT_EXISTS Const N_PASSWORD_COMPLEXITY_ERRNO = &H800708C5 Const N_USERDOSENOT_EXISTS_ERRNO = &H800708AD L_PAGETITLE_TEXT = objLocMgr.GetString("usermsg.dll","&H40300045", varReplacementStrings) L_NEWPASSWORD_TEXT = objLocMgr.GetString("usermsg.dll","&H40300046", varReplacementStrings) L_CONFIRMPASSWORD_TEXT = objLocMgr.GetString("usermsg.dll","&H40300047", varReplacementStrings) L_PASSWORD_COMPLEXITY_ERRORMESSAGE = objLocMgr.GetString("usermsg.dll","&HC0300048", varReplacementStrings) L_ADSI_ERRORMESSAGE = objLocMgr.GetString("usermsg.dll","&HC0300049", varReplacementStrings) L_PASSWORDNOTMATCH_ERRORMESSAGE = objLocMgr.GetString("usermsg.dll","&HC030004A", varReplacementStrings) L_COMPUTERNAME_ERRORMESSAGE = objLocMgr.GetString("usermsg.dll","&HC030004B", varReplacementStrings) L_USERDOSENOT_EXISTS = objLocMgr.GetString("usermsg.dll","&H4030004C", varReplacementStrings) '----------------------------------------------------------------------------------- 'END of localization content '----------------------------------------------------------------------------------- '====================================================== ' Entry point '====================================================== ' Create a Property Page rc = SA_CreatePage( L_PAGETITLE_TEXT, "", PT_PROPERTY, page ) ' ' Serve the page rc = SA_ShowPage( page ) '------------------------------------------------------------------------- 'Function: OnInitPage() 'Description: Called to signal first time processing for this page. ' Use this method to do first time initialization tasks 'Input Variables: PageIn,EventArg 'Output Variables: PageIn,EventArg 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnInitPage(ByRef PageIn, ByRef EventArg) If ( ENABLE_TRACING ) Then Call SA_TraceOut(SOURCE_FILE, "OnInitPage") End If Call OTS_GetTableSelection("", 1, F_strFirstUserName) OnInitPage = TRUE End Function '------------------------------------------------------------------------- 'Function: OnServePropertyPage() 'Description: Called when the page needs to be served.Use this ' method to serve content 'Input Variables: PageIn,EventArg 'Output Variables: PageIn,EventArg 'Returns: True/False 'Global Variables: None '------------------------------------------------------------------------- Public Function OnServePropertyPage(ByRef PageIn, ByRef EventArg) SA_TraceOut "TEMPLATE_PROPERTY", "OnServePropertyPage" ' Emit Functions required by Web Framework Call ServeCommonJavaScript()%>
<% CheckForSecureSite %> | |||||
  | |||||
<%= L_NEWPASSWORD_TEXT %> | |||||
<%= L_CONFIRMPASSWORD_TEXT %> |