https://fedorahosted.org/389/ticket/47662

https://fedorahosted.org/389/attachment/ticket/47662/0001-Ticket-47662-Better-input-argument-validation-and-er.patch