Bug 38073 - DHCP Hosts + DNS alias created without univentionObjectType
DHCP Hosts + DNS alias created without univentionObjectType
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - DHCP
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1-3-errata
Assigned To: Florian Best
Philipp Hahn
:
Depends on:
Blocks: 38075
  Show dependency treegraph
 
Reported: 2015-03-18 11:32 CET by Florian Best
Modified: 2016-11-03 11:32 CET (History)
2 users (show)

See Also:
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:


Attachments
patch (2.29 KB, patch)
2015-03-18 11:32 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>