Configure the Local User Account Lockout Policy for NSX Edge
Set the maximum number of failed login attempts and the time that must pass before an account is automatically unlocked for the local users of the NSX Edge appliances in
VMware Cloud Foundation
.Method | Setting | Default Value |
---|---|---|
CLI | max-auth-failures | 5 |
lockout-period | 900 seconds |
UI Procedure
- If you are configuring an NSX Edge virtual appliance, open the appliance console by using the Web console in the vSphere Client.
- Log in to the management domain vCenter Server athttps://<management_vcenter_server_fqdn>/uiby using an account withAdministratorprivileges.
- In theVMs and templatesinventory, expand the management domain vCenter Server tree and expand the management domain data center.
- Expand the VM folder containing the NSX Edge cluster.
- Select the first node of the NSX Edge cluster and clickLaunch web console.
- If you are configuring a bare-metal NSX Edge appliance, open the appliance console by using an out-of-band management interface, such as iLO or iDRAC.
- Log in to the NSX Edge node asadmin.
- To configure the account lockout policy for logging in to the NSX CLI according to your organization's requirements, run the commands.set auth-policy cli lockout-period <lockout-period> set auth-policy cli max-auth-failures <auth-failures>
- Repeat this procedure on the remaining NSX Edge nodes in the management domain.
- Repeat this procedure on all NSX Edge nodes in the VI workload domains.
PowerShell Procedure
You
can use the PowerShell command for configuring the
account lockup policies only on the NSX Edge nodes
in
VMware Cloud Foundation
that are deployed
by using SDDC Manager. For NSX Edge virtual
appliances that are deployed manually and for
bare-metal NSX Edge appliances, configure the
policies manually according to the NSX-T Data Center documentation
.- Start Windows PowerShell.
- Replace the values in the sample code and run the commands in the PowerShell console.$sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io" $sddcManagerUser = "administrator@vsphere.local" $sddcManagerPass = "VMw@re1!" $sddcDomainName = "sfo-m01" $cliMaxFailures = "5" $cliUnlockInterval = "900"
- Perform the configuration by running the command in the PowerShell console.Update-NsxtEdgeAccountLockout -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -cliFailures $cliMaxFailures -cliUnlockInterval $cliUnlockInterval
- Repeat this procedure for all VI workload domains.