Bug 43748 - adapt ou-creation to new DHCP-options behavior
adapt ou-creation to new DHCP-options behavior
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.2
Other Linux
: P5 enhancement (vote)
: UCS@school 4.2 v1
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on: 26838 32557 33223
Blocks: 31383
  Show dependency treegraph
 
Reported: 2017-03-07 16:45 CET by Florian Best
Modified: 2017-04-11 17:45 CEST (History)
4 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):
Max CVSS v3 score:


Attachments
patch (1.30 KB, patch)
2017-03-07 16:45 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 2017-03-07 16:45:04 CET
Created attachment 8498 [details]
patch

As the "options" option is not activated by default we need to adjust the OU creation in UCS@school. Attached is a patch.

+++ This bug was initially created as a clone of Bug #32557 +++

The implementation of Bug #26838 for individual DHCP options is only available at the command line, it should be also configurable in the web interface.
Comment 1 Florian Best univentionstaff 2017-03-07 16:46:31 CET
Did a test case find this regression?
Comment 2 Daniel Tröder univentionstaff 2017-03-07 16:56:04 CET
I found while working on Bug #40442, that in UCS@school 4.2 v1 the option for wpad autodetection was not set anymore, and that I had trouble setting it.

In the UMC the posibility to the DHCP options is in the "Advanced settings" tab. But that is *hidden*, while the checkox "Allow custom DHCP options" on the "Options" tab is disabled!

The brain frying udm cmdline to set an option is:

udm dhcp/service modify --dn=cn=<ou>,cn=dhcp,ou=<OU>,<ldap/base> --append-option options --append option='wpad "http://<FQDN>/proxy.pac"'
Comment 3 Daniel Tröder univentionstaff 2017-03-10 10:11:20 CET
Thanks for the patch. Applied:

r77562: adapt ucs-school-import to new DHCP-options behavior
r77563: adapt ucs-school-lib to new DHCP-options behavior

root@m120:~# /usr/share/ucs-school-import/scripts/create_ou NeueSchule1 m120

root@m120:~# udm dhcp/service list
DN: cn=neueschule1,cn=dhcp,ou=NeueSchule1,dc=uni,dc=dtr
ARG: None
  service: neueschule1

## upgrade ##

root@m120:~# /usr/share/ucs-school-import/scripts/create_ou NeueSchule2 m120

root@m120:~# udm dhcp/service list
DN: cn=neueschule2,cn=dhcp,ou=NeueSchule2,dc=uni,dc=dtr
ARG: None
  option: wpad "http://m120.uni.dtr/proxy.pac"
  service: neueschule2

→ Option ist set now.

Package: ucs-school-lib
Version: 10.0.1-2A~4.2.0.201703101007
Branch: ucs_4.2-0
Scope: ucs-school-4.2

Package: ucs-school-import
Version: 15.0.0-2A~4.2.0.201703101008
Branch: ucs_4.2-0
Scope: ucs-school-4.2
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2017-04-10 01:50:13 CEST
OK: code change
OK: functional test
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2017-04-11 17:45:37 CEST
UCS@school 4.2 v1 has been released.

http://docs.software-univention.de/release-notes-ucsschool-4.2v1-de.html

If this error occurs again, please clone this bug.