Hi team,

There are some bugs in python3-pyldap; the version in f25 and f26 is
affected (not sure about f27/rawhide but the problems have been
fixed upstream[1]).  In FreeIPA the `json_metadata' command is affected
(at least), which breaks the Web UI.

If you hit this, here (below) is a patch you can apply locally to
get past the issues:


[1] https://github.com/pyldap/pyldap

(epilogue: I see Stanislav is responsible for at least one of the
upstream fixes so some folks knew about it already ^_^)

--- /usr/lib64/python3.5/site-packages/ldap/schema/subentry.py  2017-08-25 
19:20:27.890073294 +1000
+++ /root/pyldap-new    2017-08-25 19:20:14.542084650 +1000
@@ -296,7 +296,7 @@
       if oc_se and oc_se.kind==0:
         struct_ocs[oc_se.oid] = None
     result = None
-    struct_oc_list = struct_ocs.keys()
+    struct_oc_list = list(struct_ocs)
     while struct_oc_list:
       oid = struct_oc_list.pop()
       for child_oid in oc_tree[oid]:
@@ -419,14 +419,14 @@
     # Remove all mandantory attribute types from
     # optional attribute type list
-    for a in r_may.keys():
+    for a in list(r_may.keys()):
       if a in r_must:
         del r_may[a]
     # Apply attr_type_filter to results
     if attr_type_filter:
       for l in [r_must,r_may]:
-        for a in l.keys():
+        for a in list(l.keys()):
           for afk,afv in attr_type_filter:
               schema_attr_type = self.sed[AttributeType][a]

FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to