Skip to content

Commit 7a57eeb

Browse files
sowjuectenthirtyam
authored andcommitted
feat: update minLen values (vmware#206)
Updates the `minLen` value for VMware Cloud Foundation 5.2. Ref: vmware#200 Signed-off-by: Sowjanya.V <[email protected]>
1 parent db99a6a commit 7a57eeb

5 files changed

+10
-5
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Enhancement:
88

99
- 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)
10-
- 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)
10+
- 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)
1111

1212
Chore:
1313

Diff for: VMware.CloudFoundation.PasswordManagement.psd1

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
RootModule = '.\VMware.CloudFoundation.PasswordManagement.psm1'
1111

1212
# Version number of this module.
13-
ModuleVersion = '1.8.2.1003'
13+
ModuleVersion = '1.8.2.1004'
1414

1515
# ID used to uniquely identify this module
1616
GUID = '34e5a0c7-6e6e-4f72-8b3c-1c28248f8ac9'

Diff for: VMware.CloudFoundation.PasswordManagement.psm1

+7-1
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,13 @@ Function Get-PasswordPolicyDefault {
13451345
$sddcManagerPasswordExpiration | Add-Member -notepropertyname 'minDays' -notepropertyvalue "0"
13461346
$sddcManagerPasswordExpiration | Add-Member -notepropertyname 'warningDays' -notepropertyvalue "7"
13471347
$sddcManagerPasswordComplexity = New-Object -TypeName psobject
1348-
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "8"
1348+
if ($version -ge "5.2") {
1349+
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "15"
1350+
} elseif ($version -ge "5.1") {
1351+
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "12"
1352+
} else {
1353+
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLength' -notepropertyvalue "8"
1354+
}
13491355
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minLowercase' -notepropertyvalue "-1"
13501356
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minUppercase' -notepropertyvalue "-1"
13511357
$sddcManagerPasswordComplexity | Add-Member -notepropertyname 'minNumerical' -notepropertyvalue "-1"

Diff for: docs/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ Platform | Support
6767
: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]
6868
: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]
6969
:fontawesome-solid-cloud: &nbsp; VMware Cloud Foundation 4.4 | :fontawesome-solid-check:{ .green } | Not Available
70-
:fontawesome-solid-cloud: &nbsp; VMware Cloud Foundation 4.3 | :fontawesome-solid-x:{ .red } | Not Applicable
7170

7271
### Operating Systems
7372

Diff for: docs/snippets/copy-module-local-windows.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copy-Item -Path F:\Module\* -Destination '\\<destination_host>\C$\Program Files\WindowsPowerShell\Modules\' -Recurse
1+
Copy-Item -Path F:\Modules\* -Destination '\\<destination_host>\C$\Program Files\WindowsPowerShell\Modules\' -Recurse

0 commit comments

Comments
 (0)