-
-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return more properties about Login #5841
Return more properties about Login #5841
Conversation
great idea! how about |
Ok. |
The ealier Pull request to fix #5840 should have failed as it was missing the $FilePath parameter at Line 418 |
I disagree with the detailed parameter here. We spent previous time removing that from every command moving toward 1.0.0. Why are we know reverting back to it? |
I have no opinion either way. |
Detailed was used without thought or patterns in previous commands. In this case, like Patrick mentioned, it's being used to avoid the overhead of running a query for every login if information is not wanted. In this case, Detailed is justified and intentional. |
So switch it to use SMO instead of the query. I haven't verified all but some of those can be returned via SMO: https://docs.microsoft.com/en-us/dotnet/api/microsoft.sqlserver.management.smo.login.passwordhashalgorithm?view=sql-smo-140.17283.0 |
Type of Change
Purpose
Implement the changes for Feature request #5732
Approach
Added option to use SQL Query to get LoginProperty information for
BadPasswordCount
BadPasswordTime
DaysUntilExpiration
HistoryLength
IsMustChange
LockoutTime
PasswordHash
PasswordLastSetTime
Commands to test
Get-DbaLogin