I posted this patch on freeipa-devel a while ago. We had a discussion
with Jason about converting unused parameter values to None, but it died
for some reason. Anyway this patch is required if we want to prevent
things from blowing up when someone accidentally passes a None value to
ldap2.add_entry (python-ldap doesn't like Nones).