python3-pyldap python 3 bugs
by Fraser Tweedale
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:
Cheers,
Fraser
[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:
try:
schema_attr_type = self.sed[AttributeType][a]
6 years, 7 months
Re: [freeipa/freeipa] Removing part of circular dependency of ipalib in ipaplatform (#989)
by Christian Heimes
On 2017-08-23 21:25, Felipe Volpone wrote:
> @felipevolpone <https://github.com/felipevolpone> pushed 1 commit.
>
> * 2ddaa6e <https://github.com/freeipa/freeipa/commit/2ddaa6e> Removing
> part of circular dependency of ipalib in ipaplaform
Why did you remove os.path.basename() from systemd-tmpfiles call? My
example included it on purpose. The tool does the right thing and
locates the correct config file on its own. A basename takes
customization into account, too.
Christian
--
Christian Heimes
Senior Software Engineer, Identity Management and Platform Security
Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael Cunningham, Michael
O'Neill, Eric Shander
6 years, 7 months