Jira (PUP-7918) puppet fails to change user group membership if directory group names have spaces

6 views
Skip to first unread message

Thomas Kishel (JIRA)

unread,
Sep 6, 2017, 2:36:03 PM9/6/17
to puppe...@googlegroups.com
Thomas Kishel created an issue
 
Puppet / Bug PUP-7918
puppet fails to change user group membership if directory group names have spaces
Issue Type: Bug Bug
Affects Versions: PUP 4.8.1
Assignee: Unassigned
Created: 2017/09/06 11:35 AM
Environment:

Oracle Linux 5.11
PE 2016.5.1

Priority: Normal Normal
Reporter: Thomas Kishel

When doing a puppet run to create a local group dba but is also in Active Directory, Puppet is unable to handle AD groups with embedded blank spaces.

class linux_base::base_groups { 
  group { 'dba': 
    gid => 123, 
    forcelocal => true, 
  } 
}

root # puppet agent -t 
Info: Using configured environment 'lab' 
Info: Retrieving pluginfacts 
Info: Retrieving plugin 
Info: Loading facts 
Info: Caching catalog for server.example.com 
Info: Applying configuration version '1234567890' 
Error: Invalid value Foo,Bar Baz,dba: Groups must be comma-separated 
Error: /Stage[main]/Linux_base::Base_users/User[oracle]/groups: change from dba,Foo,Bar Baz,dba failed: Invalid value Foo,Bar Baz,dba: Groups must be comma-separated

Defined in AD is a group named "Bar Baz", with an embedded blank space.

Groups defined to user "oracle" as seen by running the operating systems "groups" command:

root # su - oracle 
oracle> groups 
dba Foo Bar Baz

An issue on Oracle Linux 5.11.
Not an issue with Oracle Linux 6.x, 7.x.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Thomas Kishel (JIRA)

unread,
Sep 6, 2017, 2:37:02 PM9/6/17
to puppe...@googlegroups.com

Adrien Thebo (JIRA)

unread,
Sep 11, 2017, 5:21:54 PM9/11/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Sep 13, 2017, 1:22:02 AM9/13/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Apr 14, 2018, 9:08:02 PM4/14/18
to puppe...@googlegroups.com
Geoff Nichols updated an issue
 
Change By: Geoff Nichols
Labels: ldap type_and_provider
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Neil Binney (JIRA)

unread,
May 14, 2018, 11:51:03 AM5/14/18
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 14, 2018, 3:45:05 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: AD group ldap table type_and_provider user

Branan Riley (JIRA)

unread,
May 14, 2018, 3:45:05 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels:
group ldap table type_and_provider user

Branan Riley (JIRA)

unread,
May 14, 2018, 3:45:06 PM5/14/18
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 14, 2018, 4:03:03 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: AD group ldap table triaged type_and_provider user

Branan Riley (JIRA)

unread,
May 14, 2018, 8:49:03 PM5/14/18
to puppe...@googlegroups.com

Adam Bottchen (JIRA)

unread,
May 15, 2018, 12:00:04 PM5/15/18
to puppe...@googlegroups.com
Adam Bottchen updated an issue
Change By: Adam Bottchen
CS Impact: Our largest customers are going to most likely have existing AD implementations and it is not uncommon at all for there to be duplication of local groups and AD groups.  It is also not uncommon for AD entities to have spaces in their names.  We need to work correctly in that environment.
CS Severity: 3 - Serious
CS Business Value: 4 - $$$$$
CS Frequency: 2 - 5-25% of Customers

Adam Bottchen (JIRA)

unread,
May 17, 2018, 6:51:02 PM5/17/18
to puppe...@googlegroups.com

Kenyon Ralph (Jira)

unread,
Oct 2, 2020, 9:03:04 PM10/2/20
to puppe...@googlegroups.com
Kenyon Ralph commented on Bug PUP-7918
 
Re: puppet fails to change user group membership if directory group names have spaces

I suspect this is also a problem with groups with dots/periods in their names. I don't have any groups with spaces, but I have groups with underscores, and groups with dots, and get the same error, "Groups must be comma-separated", when trying to manage a user resource and modify the groups attribute.

Relevant discussion with references to POSIX: https://unix.stackexchange.com/a/11481/8945

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Kenyon Ralph (Jira)

unread,
Oct 6, 2020, 6:49:05 PM10/6/20
to puppe...@googlegroups.com
Kenyon Ralph commented on Bug PUP-7918

Actually, correction to my previous comment: I overlooked at least one group name with a space in it.

Reply all
Reply to author
Forward
0 new messages