-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Add support for newer sqlcmd versions #18774
Add support for newer sqlcmd versions #18774
Conversation
@@ -99,7 +99,7 @@ def check_osql | |||
# @return [Boolean] true if sqlcmd is present | |||
def check_sqlcmd | |||
result = run_cmd('sqlcmd -?') | |||
result =~ /SQL Server Command Line Tool/i | |||
result =~ /SQL Server Command Line Tool|Version v\d+/i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, my ssqlcmd -?
output only had the help menu and Version vx.y.z
OptString.new('DB_USERNAME', [true, 'New sysadmin login', '']), | ||
OptString.new('DB_PASSWORD', [true, 'Password for new sysadmin login', '']), | ||
OptString.new('DB_USERNAME', [true, 'New sysadmin login', nil]), | ||
OptString.new('DB_PASSWORD', [true, 'Password for new sysadmin login', nil]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you ran this module, the module would run with an empty db_username and db_password - which wouldn't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the param not just be removed then, it's required so if we just don't give it one it should force you to set it right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I preferenced explicitness here
ada1307
to
5fa1ce8
Compare
Release NotesUpdates the following modules to now work with newer versions of |
Updates
post/windows/gather/credentials/mssql_local_hashdump
andpost/windows/manage/mssql_local_auth_bypass
to work with newer versions of sqlcmdVerification
Ensure that these post modules work