[Freeipa-devel] [PATCHES] 225-230 Drop support for the legacy LDAP API

Petr Viktorin pviktori at redhat.com
Fri Dec 13 14:16:24 UTC 2013


On 12/10/2013 04:05 PM, Jan Cholasta wrote:
> Hi,
>
> I believe the time has come to drop support for the legacy (dn,
> entry_attrs) tuple API and move to the new LDAPEntry API exclusively.
> The attached patches convert existing code which uses the old API to the
> new API and remove backward compatibility code from the ipaldap module.
>
> Note that there are still some functions/methods which accept separate
> dn and entry_attrs arguments, they will be adapted to LDAPEntry later.
>
> Honza

The first N-1 patches can be tested,acked,pushed independently, right?
If that's the case, ACK for 225


As for dropping the support itself, I think we should think more about 
backward compatibility. This will affect nearly all third-party plugins, 
and I'm sure there are a few.

I'd recommend something like:
3.4: Warn in release notes that we'll be dropping support; log a warning 
when __iter__ is used
3.5: Make __iter__ raise an exception (we don't want to silently start 
returning different data)
3.6: Finally start acting like a dict

-- 
Petr³




More information about the Freeipa-devel mailing list