There is a test in roles to verify that escaping commas works as expected. It is failing, as demonstrated by:
$ ipa role-add-privilege --privileges="u,r stuff" test Role name: test Description: test Failed members: privilege: u: privilege not found privilege: r stuff: privilege not found ---------------------------- Number of privileges added 0 ----------------------------
I'm dealing with escapes in https://fedorahosted.org/freeipa/ticket/2227; I'll fix the tests while I'm at it.
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=797565
master: dddebe2
ipa-2-2: 3738a61
Note that the correct command is:
ipa role-add-privilege --privileges='"u,r stuff"' test
The double quotes are for the CSV parser.\ Single quotes are needed so the shell doesn't interpret the double ones.
Metadata Update from @rcritten: - Issue assigned to pviktori - Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03
Login to comment on this ticket.