Univention Bugzilla – Bug 43048
DHCP Hosts underneath of containers aren't shown in UMC
Last modified: 2017-04-21 10:03:05 CEST
Created attachment 8240 [details] patch DHCP Hosts underneath of containers aren't shown in the DHCP UMC module. They are shown in the LDAP Navigation. This is because the backend sets the search base to the superordinate dn and searches with scope = 'one' - which can't give any results if the objects are in subcontainers. Attached is a patch.
univention-management-console-module-udm (6.0.11-36): r76101 | Bug #43048: fix containers underneath of superordinate objects univention-management-console-module-udm.yaml: r76106 | YAML Bug #43423 Bug #43048 UCS 4.2 merge: univention-management-console-module-udm (7.0.3-3): r76104 | Bug #43048: fix containers underneath of superordinate objects
It basically works but if I select the container and try to add a new object, I get the following traceback: Die Ausführung des Kommandos udm/add dhcp/dhcp ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run tmp = self._function() File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line 367, in _thread dn = module.create(properties, container=options.get('container'), superordinate=options.get('superordinate')) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 86, in _decorated return method(*args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/ldap.py", line 141, in _decorated result = func(*args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 386, in create obj.create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 306, in create return self._create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 711, in _create self._ldap_pre_create() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 500, in _ldap_pre_create self.dn = self._ldap_dn() File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 506, in _ldap_dn identifier.append((self.mapping.mapName(name), self.mapping.mapValue(name, self.info[name]), 2)) File "/usr/lib/pymodules/python2.7/univention/admin/mapping.py", line 278, in mapValue map_value = self._map[map_name][1] KeyError: 'name'
univention-management-console-module-udm (6.0.11-38): r76619 | Bug #43048: fix creation of objects having a superordinate in subcontainers of the superordinate univention-management-console-module-udm (7.0.4-3): r76620 | Bug #43048: fix creation of objects having a superordinate in subcontainers of the superordinate
Tests: OK, it works now Changelog: I've changed it a little bit: r76642 UCS 4.2 merge: OK
<http://errata.software-univention.de/ucs/4.1/395.html>