vmware / powershell-module-for-vmware-cloud-foundation-password-management

PowerShell Module for VMware Cloud Foundation Password Management
https://vmware.github.io/powershell-module-for-vmware-cloud-foundation-password-management/
BSD 2-Clause "Simplified" License
11 stars 9 forks source link

Some variation in the mode of working for certain cmdlets #186

Closed sowjuec closed 6 months ago

sowjuec commented 6 months ago

Code of Conduct

VMware Cloud Foundation

4.5.2

PowerShell Version

Windows Powershell 7.3.4

PowerCLI Version

13.1

Module Version

1.7.2.1007

PowerValidatedSolutions Version

2.9.0.1050

PowerVCF Version

2.4.1.1000

Guest Operating System

Windows Server 2019

Environment Details

NA

Description

I did some testing on newly added code for all ARIA components and found some variation in the cmdlets functionality.

Error or Debug Output

Executed the following command and found that history was not getting updated

Update-AriaLocalUserPasswordComplexity -server $server -user $user -pass $pass -product vrli -minLength 7 -uppercase 1 -lowercase 1 -numerical 1 -special 1 -unique 5 -history 3 -retry 3 -class 3 -sequence 3 ----- update went fine, no successs or error message but on checking with request cmdlet, history was not configured

The output is as follows "System : sfo-vrli01a Min Numerical : 1 Min Uppercase : 1 Min Lowercase : 1 Min Unique : 5 Min Length : 7 Min Class : 3 Min Special : 1 Max Retries : 3 Max Repeat : 3 History : History is not configured"

Likewise there were many cmdlets, I have fixed code for all of them

Expected Behavior

Update-AriaLocalUserPasswordComplexity -server $server -user $user -pass $pass -product vrli -minLength 7 -uppercase 1 -lowercase 1 -numerical 1 -special 1 -unique 5 -history 3 -retry 3 -class 3 -sequence 3 ----- update went fine, no successs or error message but on checking with request cmdlet, history was not configured

The output is as follows "System : sfo-vrli01a Min Numerical : 1 Min Uppercase : 1 Min Lowercase : 1 Min Unique : 5 Min Length : 7 Min Class : 3 Min Special : 1 Max Retries : 3 Max Repeat : 3 History : 3"

Actual Behavior

Executed the following command and found that history was not getting updated

Update-AriaLocalUserPasswordComplexity -server $server -user $user -pass $pass -product vrli -minLength 7 -uppercase 1 -lowercase 1 -numerical 1 -special 1 -unique 5 -history 3 -retry 3 -class 3 -sequence 3 ----- update went fine, no successs or error message but on checking with request cmdlet, history was not configured

The output is as follows "System : sfo-vrli01a Min Numerical : 1 Min Uppercase : 1 Min Lowercase : 1 Min Unique : 5 Min Length : 7 Min Class : 3 Min Special : 1 Max Retries : 3 Max Repeat : 3 History : History is not configured"

Steps to Reproduce

Executed the following command and see if history field is showing the right value [3].

Update-AriaLocalUserPasswordComplexity -server $server -user $user -pass $pass -product vrli -minLength 7 -uppercase 1 -lowercase 1 -numerical 1 -special 1 -unique 5 -history 3 -retry 3 -class 3 -sequence 3 ----- update went fine, no successs or error message but on checking with request cmdlet, history was not configured

The output is as follows "System : sfo-vrli01a Min Numerical : 1 Min Uppercase : 1 Min Lowercase : 1 Min Unique : 5 Min Length : 7 Min Class : 3 Min Special : 1 Max Retries : 3 Max Repeat : 3 History : History is not configured"

Log Fragments and Files

No response

Screenshots

No response

References

No response

github-actions[bot] commented 5 months ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.