Bug 38073

Summary: DHCP Hosts + DNS alias created without univentionObjectType
Product: UCS Reporter: Florian Best <best>
Component: UMC - DHCPAssignee: Florian Best <best>
Status: CLOSED FIXED QA Contact: Philipp Hahn <hahn>
Severity: normal    
Priority: P5 CC: gohmann, schwardt
Version: UCS 4.0   
Target Milestone: UCS 4.1-3-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=37504
https://forge.univention.org/bugzilla/show_bug.cgi?id=40839
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional): Cleanup
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 38075    
Attachments: patch

Description Florian Best univentionstaff 2015-03-18 11:32:57 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.
Comment 1 Florian Best univentionstaff 2015-03-18 11:35:08 CET
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.
Comment 2 Florian Best univentionstaff 2016-10-13 18:36:59 CEST
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
Comment 3 Philipp Hahn univentionstaff 2016-10-17 16:03:09 CEST
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
Comment 4 Janek Walkenhorst univentionstaff 2016-11-03 11:32:37 CET
<http://errata.software-univention.de/ucs/4.1/319.html>