Back to User management: Other
DESCRIPTION
This script solution demonstrates how to enforce the use of the "Generate Password" function when creating or modifying a user, or resetting user password. This is done by preventing from manaully typing in passwords
Note This code may use functions from the ARS Script Policy Best Practices. Please, follow the link to obtain instructions and code for those functions.
SCRIPT
'*********************************************************************************
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
' WARRANTIES OF MERCHANTBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
' IF YOU WANT THIS FUNCTIONALITY TO BE CONDITIONALLY SUPPORTED,
' PLEASE CONTACT QUEST PROFESSIONAL SERVICES.
'*********************************************************************************
'
' This code is published on the ActiveRoles Script Center:
' http://communities.quest.com/docs/DOC-9991
'
' This code may use functions from the ARS Script Policy Best Practices:
' http://communities.quest.com/docs/DOC-10016
'
' Please, follow the link to obtain instructions and code for those functions.
'*********************************************************************************
Option Explicit
'===========================================================================
' onGetEffectivePolicy
'===========================================================================
Sub onGetEffectivePolicy(Request)
If (LCase(Request.Class) <> "user") Then Exit Sub
Call Request.SetEffectivePolicyInfo("edsaPassword", EDS_EPI_UI_AUTO_GENERATED, True)
End Sub ' onGetEffectivePolicy
'***** END OF CODE ***************************************************************
COMPATIBILITY
Script compatible with the following version(s): <Not specified>