Univention Bugzilla – Bug 38073
DHCP Hosts + DNS alias created without univentionObjectType
Last modified: 2016-11-03 11:32:37 CET
Created attachment 6769 [details] patch If a DHCP host or DNS alias is created by modifying/adding the entry at a computer object no univentionObjectType attribute is added. When using the regular DNS/DHCP module it is. The created DHCP objects e.g. only have the objectClass univentionDhcpHost which is also used by the identify() method but this maybe fail if in some rare cases UMC-UDM identifies objects by their univentionObjectType attribute which then does not exists. Attached patch fixes this for newly created objects.
In Bug #37504 this has already been fixed for DNS pointer and host records. Also writing of ucs-test scripts were affected as they could not use the attribute.
Applied this patch. univention-directory-manager-modules (11.0.3-36): r73171 | Bug #38073: add missing univentionObject object class univention-directory-manager-modules (12.0.4-2): r73159 | Bug #38073: add missing univentionObject object class
OK: r73171 OK: r73159 OK: aptitude install '?source-package(univention-directory-manager-modules)~i' # 11.0.3-36.1430.201610131831 OK: udm computers/memberserver create --set name=testa --set network=$(udm networks/network list|sed -ne 's/^DN: //p;T;q') --set mac='00:11:22:33:44:55' --set dnsEntryZoneAlias="$(ucr get domainname) $(udm dns/forward_zone list|sed -ne 's/^DN: //p;T;q') testb" OK: univention-ldapsearch -LLLo ldif-wrap=no dhcpHWAddress='ethernet 00:11:22:33:44:55' univentionObjectType OK: univention-ldapsearch -LLLo ldif-wrap=no relativeDomainName=testb univentionObjectType OK: univention-directory-manager-modules.yaml TBD: errata-announce -V --only univention-directory-manager-modules.yaml
<http://errata.software-univention.de/ucs/4.1/319.html>