vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
753 stars 603 forks source link

Fix issue #460 adding PasswordExpirationRemainingDays property #463

Closed dmilov closed 3 years ago

dmilov commented 3 years ago

Fix issue #460 adding PasswordExpirationRemainingDays property to the PersonUser object

Testing done:

[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\ConnectDisconnect.Tests.ps1 3.65s (2.47s|493ms)
[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\Group.Tests.ps1 7.42s (6.96s|385ms)
[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\IdentitySource.Tests.ps1 864ms (742ms|98ms)
[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\LockoutPolicy.Tests.ps1 783ms (618ms|140ms)
[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\LsClient.Tests.ps1 206ms (94ms|100ms)
[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\PasswordPolicy.Tests.ps1 1.74s (1.57s|146ms)
[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\PersonUser.Tests.ps1 7.96s (7.62s|277ms)
[+] C:\git-repos\github\PowerCLI-Example-Scripts\Modules\VMware.vSphere.SsoAdmin\src\test\TokenLifetime.Tests.ps1 1.29s (1.1s|175ms)
Tests completed in 23.96s
Tests Passed: 47, Failed: 0, Skipped: 0 NotRun: 0
>Get-SsoPersonUser -Domain vsphere.loca

Name                            : krbtgt/VSPHERE.LOCAL
Domain                          : vsphere.local
Description                     :
FirstName                       :
LastName                        :
EmailAddress                    :
Locked                          : False
Disabled                        : False
PasswordExpirationRemainingDays : 9175

Signed-off-by: Dimitar Milov dmilov@vmware.com