Quantcast
Channel: TechCenter
Viewing all articles
Browse latest Browse all 2350

How to enforce the use of the "Generate Password" function

$
0
0
Revision 2 posted to Active Roles Script Center by DELL-Dipak Bombe on 2/26/2014 8:52:53 AM

How to enforce the use of the "Generate Password" function

Script Center, Script Center: VBScript

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>

 

Back to User management: Other


Viewing all articles
Browse latest Browse all 2350

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>