Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

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>]] [-Controller <NcController[]>]
[-WhatIf] [-Confirm] [<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

-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

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
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







 Data ONTAP® PowerShell Toolkit