[Freeipa-devel] [PATCH 0050] ACI plugin: correctly parse bind rules enclosed in parentheses

Martin Basti mbasti at redhat.com
Mon Jul 27 15:10:02 UTC 2015


On 23/07/15 16:06, Martin Babinsky wrote:
> This is a quick fix for https://fedorahosted.org/freeipa/ticket/5037
>
>
>
NACK

I do not like your change in first regexp too much.

Can you try this instead?

PermPat = re.compile(r'(\w+)\s*\(([^()]*)\)\s*(.*)', re.UNICODE)

This just removes '(' and ') ' from pattern and accept all other characters.

-- 
Martin Basti

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150727/d8b7759d/attachment.htm>


More information about the Freeipa-devel mailing list