[Pkg-freeipa-devel] Bug#929382: python3-lib389: dsidm posixgroup create fails due to Namespace error in cli_idm/posixgroup.py

Jörg Behrmann behrmann at physik.fu-berlin.de
Wed May 22 15:59:25 BST 2019


Package: python3-lib389
Version: 1.4.0.22-1
Severity: normal
Tags: patch

When running 

dsidm <instance> posixgroup create foo

to create the group foo, dsidm fails with a namespace error, saying that
args does not have the attribute extra.

The problem can be found in versions 1.4.0.21 and 1.4.0.22 and has been
fixed upstream.

A patch is attached.

-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-lib389 depends on:
ii  python3                   3.7.2-1
ii  python3-argcomplete       1.8.1-1
ii  python3-argparse-manpage  1.1-1
ii  python3-dateutil          2.7.3-3
ii  python3-ldap              3.1.0-2
ii  python3-pyasn1            0.4.2-3
ii  python3-pyasn1-modules    0.2.1-0.2
ii  python3-pytest            3.10.1-2
ii  python3-six               1.12.0-1

python3-lib389 recommends no packages.

python3-lib389 suggests no packages.

-- no debconf information
-------------- next part --------------
--- posixgroup.py.broken	2019-05-22 16:51:15.051955626 +0200
+++ posixgroup.py	2019-05-22 16:52:03.423941608 +0200
@@ -39,7 +39,7 @@
     _generic_get_dn(inst, basedn, log.getChild('_generic_get_dn'), MANY, dn, args)
 
 def create(inst, basedn, log, args):
-    kwargs = _get_attributes(args.extra, MUST_ATTRIBUTES)
+    kwargs = _get_attributes(args, MUST_ATTRIBUTES)
     _generic_create(inst, basedn, log.getChild('_generic_create'), MANY, kwargs, args)
 
 def delete(inst, basedn, log, args):


More information about the Pkg-freeipa-devel mailing list