-
Notifications
You must be signed in to change notification settings - Fork 225
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
SqlServerLogin: Password test fails for nativ sql users #1048
Comments
I've created a PR with an idea how to fix it. |
I haven't checked your code, but I'm guessing you fixed the piece I referred to as There are two other problems in #1032 , one is that password is reset, so if DSC is creating a login which will have its password changed in the future DSC will try to force it back to the original, and second the password appears to be set to a secure string representation of the password. (at least on SQL 2012) |
- Changes to SqlServerLogin - Fix password test fails for nativ sql users (issue #1048).
Details of the scenario you tried and the problem that is occurring:
I'm running a SQL Server 2016 deployed with DSC. One SqlServerLogin resource should set the SQL sa password to a desired value. Because there is a bug in the Connect-SQL helper function, the resource is not able to test a nativ sql user password. It tries to test the native sql login like a Windows login, which always fails.
The DSC configuration that is using the resource (as detailed as possible):
SqlServerLogin
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
Windows Server 2016, SQL Server 2016, SqlServerDsc 11.0.0.0
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
SQLPS, 1.0
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
dev
The text was updated successfully, but these errors were encountered: