Skip to content

Commit

Permalink
feat: update minLen values (vmware#206)
Browse files Browse the repository at this point in the history
Updates the `minLen` value for VMware Cloud Foundation 5.2.

Ref: vmware#200

Signed-off-by: Sowjanya.V <sowjanya.v@broadcom.com>
  • Loading branch information
sowjuec authored and tenthirtyam committed Jul 16, 2024
1 parent db99a6a commit 7a57eeb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Enhancement:

- Enhanced to support Photon OS 4.0 and 5.0 based appliances. [GH-202](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/202)
- Enhanced `Get-PasswordPolicyDefault` to support VMware Cloud Foundation 5.2. [GH-204](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/204)
- Enhanced `Get-PasswordPolicyDefault` to support VMware Cloud Foundation 5.2. [GH-204](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/204), [GH-206](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-password-management/pull/206)

Chore:

Expand Down
2 changes: 1 addition & 1 deletion VMware.CloudFoundation.PasswordManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
RootModule = '.\VMware.CloudFoundation.PasswordManagement.psm1'

# Version number of this module.
ModuleVersion = '1.8.2.1003'
ModuleVersion = '1.8.2.1004'

# ID used to uniquely identify this module
GUID = '34e5a0c7-6e6e-4f72-8b3c-1c28248f8ac9'
Expand Down
8 changes: 7 additions & 1 deletion VMware.CloudFoundation.PasswordManagement.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,13 @@ Function Get-PasswordPolicyDefault {
$sddcManagerPasswordExpiration | Add-Member -notepropertyname 'minDays' -notepropertyvalue "0"
$sddcManagerPasswordExpiration | Add-Member -notepropertyname 'warningDays' -notepropertyvalue "7"
$sddcManagerPasswordComplexity = New-Object -TypeName psobject
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "8"
if ($version -ge "5.2") {
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "15"
} elseif ($version -ge "5.1") {
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "12"
} else {
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "8"
}
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLowercase' -notepropertyvalue "-1"
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minUppercase' -notepropertyvalue "-1"
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minNumerical' -notepropertyvalue "-1"
Expand Down
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Platform | Support
:fontawesome-solid-cloud: &nbsp; VMware Cloud Foundation 5.0 | :fontawesome-solid-check:{ .green } | :fontawesome-solid-book: &nbsp; [Documentation][docs-vmware-cloud-foundation-ppm-5-0]
:fontawesome-solid-cloud: &nbsp; VMware Cloud Foundation 4.5 | :fontawesome-solid-check:{ .green } | :fontawesome-solid-book: &nbsp; [Documentation][docs-vmware-cloud-foundation-ppm-4-5]
:fontawesome-solid-cloud: &nbsp; VMware Cloud Foundation 4.4 | :fontawesome-solid-check:{ .green } | Not Available
:fontawesome-solid-cloud: &nbsp; VMware Cloud Foundation 4.3 | :fontawesome-solid-x:{ .red } | Not Applicable

### Operating Systems

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/copy-module-local-windows.ps1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Copy-Item -Path F:\Module\* -Destination '\\<destination_host>\C$\Program Files\WindowsPowerShell\Modules\' -Recurse
Copy-Item -Path F:\Modules\* -Destination '\\<destination_host>\C$\Program Files\WindowsPowerShell\Modules\' -Recurse

0 comments on commit 7a57eeb

Please sign in to comment.