|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcRoleConfig
NAME
Set-NcRoleConfig
SYNOPSIS
Modify the specified attributes of role configuration object.
SYNTAX
Set-NcRoleConfig [-Role] <String> -Vserver <String[]> [-MinUsernameSize <Int
32>] [-MinPasswordSize <Int32>] [-LastPasswordsDisallowedCount <Int32>] [-Ch
angePasswordDurationInDays <Int32>] [-RequireUsernameAlphaNumeric [<Boolean>
]] [-RequirePasswordAlphaNumeric [<Boolean>]] [-MinPasswordSpecialCharacter
<Int32>] [-PasswordExpirationDuration <Int32>] [-MaxFailedLoginAttempts <Int
32>] [-LockoutDurationDays <Int32>] [-RequireInitialPasswordUpdate [<Boolean
>]] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Modify the specified attributes of role configuration object. Omitted (opti
onal) fields will not be changed.
PARAMETERS
-Role <String>
Name of the role to modify.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Vserver <String[]>
Vserver that owns the role.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-MinUsernameSize <Int32>
The minimum length of the user name. Possible values range from 3 to 16
characters. The default setting is 3 characters.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-MinPasswordSize <Int32>
This optionally specifies the minimum length of the password. Possible
values range from 3 to 64 characters. The default setting is 8 characte
rs.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-LastPasswordsDisallowedCount <Int32>
This optionally specifies the number of previous passwords that are disa
llowed for reuse. The default setting is 6.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ChangePasswordDurationInDays <Int32>
This optionally specifies the number of days that must pass between pass
word changes. The default setting is 0 (zero) meaning the user is not a
llowed to change the password ever.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-RequireUsernameAlphaNumeric [<Boolean>]
This optionally specifies the username must be an alphanumeric value.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-RequirePasswordAlphaNumeric [<Boolean>]
This optionally specifies the password must be an alphanumeric value.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-MinPasswordSpecialCharacter <Int32>
The minimum number of special characters required in the password. Avai
lable in Data ONTAP 8.2 and up.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PasswordExpirationDuration <Int32>
The password expiry in days. Available in Data ONTAP 8.2 and up.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-MaxFailedLoginAttempts <Int32>
The maximum number of invalid login attempts before the account gets loc
ked. Available in Data ONTAP 8.2 and up.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-LockoutDurationDays <Int32>
The number of days to lock the account if maximum number of failed attem
pts occur. Available in Data ONTAP 8.2 and up.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-RequireInitialPasswordUpdate [<Boolean>]
If true, require the user to change the password upon first-login to the
storage controller from SSH or serial-console. Available in Data ONTAP
8.2 and up.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.C.Types.Security.SecurityLoginRoleConfigInfo
NOTES
Category: security
API: security-login-role-config-modify
Family: cluster
-------------- Example 1 --------------
C:\PS>Set-NcRoleConfig -Vserver costea01 -Role vsadmin-volume -ChangePasswor
dDurationInDays 30
Change the password duration setting in the role configuration for role 'vsa
dmin-volume' in vserver 'costea01'.
RoleName : vsadmin-volume
Vserver : costea01
MinUsernameSize : 3
RequireUsernameAlphaNumeric : False
MinPasswordSize : 8
RequirePasswordAlphaNumeric : True
ChangePasswordDurationInDays : 30
LastPasswordsDisallowedCount : 6
NcController : VxeRubble
RELATED LINKS
Get-NcRole
Get-NcRoleConfig
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|