Configure the Local User Account Lockout Policy for SDDC Manager
Set the maximum number of failed login attempts and the time that must pass before an account on the SDDC Manager appliance is automatically unlocked.
Setting | Default Value |
---|---|
Maximum number of failed login attempts | 3 |
Unlock time for root | 300 seconds |
Unlock time for all local accounts | 86,400 seconds |
UI Procedure
- Log in to the SDDC Manager appliance using SSH asvcf.
- Change to therootuser.su -
- Back up the authentication requirements for the appliance using the following command.cp -p /etc/security/faillock.conf /etc/security/faillock.conf-`date +%F_%H:%M:%S`.back
- Verify that all properties for configuring account lockout policy for SDDC Manager users are added in the/etc/security/faillock.conffile.If some properties are missing in the/etc/security/faillock.conffile, add them manually.# Configuration for locking the user after multiple failed # authentication attempts. # # The directory where the user files with the failure records are kept. # The default is /var/run/faillock. . . . . # admin_group = <admin_group_name> dir = /run/faillock deny = 3 unlock_time = 86400 even_deny_root root_unlock_time = 300 dir = /var/log/faillock
- To configure the lockout policy for the root user account, in the/etc/security/faillock.conffile, set values to the following properties according to the requirements of your organization and save the file.SettingProperty in/etc/security/faillock.confMaximum number of failed attemptsdenyUnlock time for the root user accountroot_unlock_timeUnlock time for all local accountsunlock_time
The configuration is applied to all local user accounts on the SDDC Manager appliance.
PowerShell Procedure
- Start 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!" # Replace with the name of your management domain $sddcDomainName = "sfo-m01" $rootPass = "VMw@re1!" $maxFailures = "3" $unlockInterval = "86400" $rootUnlockInterval = "300"
- Perform the configuration by running the command in the PowerShell console.Update-SddcManagerAccountLockout -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -rootPass $rootPass -failures $maxFailures -unlockInterval $unlockInterval -rootUnlockInterval $rootUnlockInterval