Skip to content
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 Windows auth in mssql_resourcet #1786

Merged
merged 1 commit into from
May 9, 2017
Merged

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented May 9, 2017

This adds supports for connecting to MS SQL instances using Window
authentication rather than SQL authentication. By leaving either the
user or password parameters blank causes the sqlcmd to leave off the -U
and -P params. This will cause sqlcmd to authenticate as the current
Windows user.

Signed-off-by: Nolan Davidson ndavidson@chef.io

rebased from #1750

Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nsdavidson Great addition. Can we add a unit test as well?

@chris-rock
Copy link
Contributor

Going forward I see us using https://hub.docker.com/r/microsoft/mssql-server-windows-express/ for integration testing

@arlimus
Copy link
Contributor Author

arlimus commented May 9, 2017

I'll add the unit tests, since this is a hard rebase. Good point!

This adds supports for connecting to MS SQL instances using Window
authentication rather than SQL authentication.  By leaving either the
user or password parameters blank causes the sqlcmd to leave off the -U
and -P params.  This will cause sqlcmd to authenticate as the current
Windows user.

Signed-off-by: Nolan Davidson <ndavidson@chef.io>
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @nsdavidson and @arlimus

@chris-rock chris-rock merged commit 1a527bb into master May 9, 2017
@chris-rock chris-rock deleted the pr/1750 branch May 9, 2017 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Adds new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants