[Freeipa-devel] Using the new LDAP code

Petr Viktorin pviktori at redhat.com
Wed Feb 27 16:21:55 UTC 2013


On 02/27/2013 05:09 PM, John Dennis wrote:
> On 02/27/2013 06:46 AM, Petr Viktorin wrote:
>> Hello,
>> A big refactoring of our LDAP code should be merged soon-ish now. Here's
>> a summary for developers.
>
> Great, that's fabulous news and thanks for the good work!
>
>> IPA plugins traditionally use (dn, entry_attrs) pairs to represent
>> entries. To make that work, iterating over an LDAPEntry will, for now,
>> yield the DN and the entry itself. Always use keys() or values() when
>> iterating over an entry.
>
> I'm trying parse what the above means, it seems to be one of the two:
>
> 1) There is still a bunch of code that continues to use 2-tuples in the
> plugins and additional work remains to converge on a single API.
>
> 2) All the code that used 2-tuples has been cleaned up and expunged,
> however if the old 2-tuple methodology was used it would still work.


The first. There are minimal changes to the plugins (most changes there 
are related to the removal of DN normalization).

-- 
Petr³




More information about the Freeipa-devel mailing list