[Freeipa-devel] freeipa is broken in Rawhide due to python-ldap 2.4.6

Alexander Bokovoy abokovoy at redhat.com
Tue Jan 24 11:02:18 UTC 2012


Hi!

Apparently, Rawhide has moved to python-ldap 2.4.6. This release 
breaks freeipa build as EncodeControlTuples is not exposed (neither 
exist) in 2.4 branch anymore. Thus, our make-lint fails.

The build in Rawhide itself doesn't fail as can be seen by 
freeipa-2.1.4-4.fc17 because we don't run make-lint during build 
process. However, FreeIPA installation will fail as 
ipaserver/ipaldap.py tries to import the symbol which does not exist.

The fix is simple but before applying it under one-liner rule can 
someone explain me what was the purpose of using these control tuples 
symbols? I've got through git history for the ipaserver/ipaldap.py 
down to its initial version and while symbols were introduced, they 
were never used.

diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py
index 4dca604..f69ebe6 100644
--- a/ipaserver/ipaldap.py
+++ b/ipaserver/ipaldap.py
@@ -32,7 +32,7 @@ import time
 import struct
 import ldap.sasl
 import ldapurl
-from ldap.controls import LDAPControl,DecodeControlTuples,EncodeControlTuples
+from ldap.controls import LDAPControl
 from ldap.ldapobject import SimpleLDAPObject
 from ipaserver import ipautil
 from ipalib import errors


-- 
/ Alexander Bokovoy




More information about the Freeipa-devel mailing list