https://fedorahosted.org/389/ticket/47927
https://fedorahosted.org/389/attachment/ticket/47927/0002-Ticket-47927-Uniqueness-plugin-should-allow-to-exclu.patch
This is basically a rebase of the original patch (+fixing a
dereference pointer issue) and a unit test