Skip to content

(MODULES-3752) Fix modifying server_roles for an existing WINDOWS_LOGIN #185

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

Merged
merged 1 commit into from
Aug 18, 2016
Merged

(MODULES-3752) Fix modifying server_roles for an existing WINDOWS_LOGIN #185

merged 1 commit into from
Aug 18, 2016

Conversation

glennsarti
Copy link
Contributor

Previously the SQL template for modifying a login and the associated acceptance
tests were using the IS_SRVROLEMEMBER function to determine membership. However
this function has many caveats e.g. failing for domain principals if a domain
controller is not contactable, and always return false for a disabled Windows
user login. This commit changes the check to use the sys.server_role_members
table which holds the underlying membership information.

Previously the SQL template for modifying a login and the associated acceptance
tests were using the IS_SRVROLEMEMBER function to determine membership.  However
this function has many caveats e.g. failing for domain principals if a domain
controller is not contactable, and always return false for a disabled Windows
user login.  This commit changes the check to use the `sys.server_role_members`
table which holds the underlying membership information.
@glennsarti glennsarti changed the title (MODULES-3752) Fix modifying server_roles for an existing WINDOWS_LOGIN {WIP}(MODULES-3752) Fix modifying server_roles for an existing WINDOWS_LOGIN Aug 17, 2016
@ferventcoder ferventcoder changed the title {WIP}(MODULES-3752) Fix modifying server_roles for an existing WINDOWS_LOGIN (MODULES-3752) Fix modifying server_roles for an existing WINDOWS_LOGIN Aug 18, 2016
@ferventcoder ferventcoder merged commit 4c49240 into puppetlabs:master Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants