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

User resource doesn't handle group names with spaces #238

Closed
jorritfolmer opened this issue Nov 14, 2015 · 2 comments · Fixed by #258
Closed

User resource doesn't handle group names with spaces #238

jorritfolmer opened this issue Nov 14, 2015 · 2 comments · Fixed by #258
Labels
Type: Bug Feature not working as expected

Comments

@jorritfolmer
Copy link

On a Linux server that is joined to a Windows domain, users generaly are member of groups that contain spaces in their names. Eg "domain users". However, this currenly fails.

Test:

describe user('jfolmer') do
  its('groups') { should eq ['domain users', 'domain admins', 'denied rodc password replication group'] }
end

Output:

Failures:

  1) User jfolmer groups should eq ["domain users", "domain admins", "denied rodc password replication group"]
     Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }

       expected: ["domain users", "domain admins", "denied rodc password replication group"]
            got: ["domain"]
@chris-rock
Copy link
Contributor

@jorritfolmer Thanks for reporting this! Could you do me a favor and share the result of id jfolmer

@jorritfolmer
Copy link
Author

Yes here it is:

uid=201105(jfolmer) gid=200513(domain users) groups=200513(domain users),200512(domain admins),200572(denied rodc password replication group)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants