| This is a sample profile Login Script that will tell the user when their password expires, each time they log into webNetwork / Unified Workspace. Once the user reaches the limit where their password will expire in 4 days, the Change Password link is also executed with a warning message. If the user still hasn't changed their password with 1 day to go before it expires, they are more strongly warned to change their password, with the Change Password link being executed. // *** Check for when password expires *** if daysUntilPasswordExpiration > 4 then message( text = "@@usergivenname@@ your password will expire on @@PasswordExpirationTime@@") end // *** Inform user password will expire in 4 days *** if (daysUntilPasswordExpiration > 1 and daysUntilPasswordExpiration < 4) then executeLink("cn=Change Password,ou=Authentication,ou=Account Mgmt,o=STONEWARE") message( type=warning, text = "@@usergivenname@@ your password will expire in less than 4 days. Please change your Password soon. Expiration = @@PasswordExpirationTime@@.") end // *** Inform user passwored expires in 1 day *** if daysUntilPasswordExpiration <= 1 then executeLink("cn=Change Password,ou=Authentication,ou=Account Mgmt,o=STONEWARE") message( type=alert, text = "@@usergivenname@@ your password will expire in 1 day or less. PLEASE CHANGE YOUR PASSWORD NOW! before it gets locked out. Thank you. Expiration = @@PasswordExpirationTime@@", icon="/images/redx.gif" ) end |