Bug 48534 - remove dns-hostname from s4connector ignore list
remove dns-hostname from s4connector ignore list
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Samba 4 - Slave PDC
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v1
Assigned To: Arvid Requate
Sönke Schwardt-Krummrich
:
Depends on: 26841
Blocks: 47942
  Show dependency treegraph
 
Reported: 2019-01-25 12:24 CET by Felix Botner
Modified: 2019-03-12 10:58 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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2019-01-25 12:24:43 CET
See bug #47955, we modified create_spn_account.sh so that it creates users SPN account via UDM (and not directly in samba).

What we need to do in school, is:

 * updates: remove the local samba dns-$hostname user
 * remove dns-$hostname from the s4 connector ignore list (update/installation)
 * updates: re-create the local samba dns-$hostname user (see 
   98univention-samba4-dns.inst)
Comment 1 Arvid Requate univentionstaff 2019-01-28 11:45:12 CET
I guess we don't need to remove existing dns-$hostname accounts.
Comment 2 Felix Botner univentionstaff 2019-02-11 16:22:24 CET
5eeb6f4ec6542b3095d8fd0543bdc4b7cf31c0b5 ucs-school-import
 * do not add dns-$hostname to ignore list

57e9d3d884db3206b0162d1e7659dd3d73fe4612 cs-school-metapackage
 * do not add dns-$hostname to ignore list
 * remove dns-$hostname from ignore list during this update
Comment 3 Arvid Requate univentionstaff 2019-02-25 19:59:56 CET
Ok, that ignore was introduced for Bug #26841 but not usefule any longer because you fixed Bug #47955.

I've fixed two minor shell issues (quoting and unsetting IFS), which probably would not have caused problems in real life anyway:

fa3d8b1ae | fix IFS unset

Package: ucs-school-metapackage
Version: 12.0.0-38A~4.4.0.201902251956
Branch: ucs_4.4-0
Scope: ucs-school-4.4
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2019-02-27 09:56:47 CET
During update UCS@school 4.3 → 4.4 I got the following messages in updater.log:

/var/lib/dpkg/info/ucs-school-master.postinst: 150: /var/lib/dpkg/info/ucs-school-master.postinst: new_ignore+=root: not found
/var/lib/dpkg/info/ucs-school-master.postinst: 150: /var/lib/dpkg/info/ucs-school-master.postinst: new_ignore+=ucs-s4sync: not found

Package version of ucs-school-master: 12.0.0-44A~4.4.0.20190226174
Comment 5 Arvid Requate univentionstaff 2019-02-27 14:15:39 CET
Yeah, that's a bashism in a dash script. I've turned all postinst scripts in ucs-school-metapackage into bash scripts now:

Package: ucs-school-metapackage
Version: 12.0.0-46A~4.4.0.201902271401
Branch: ucs_4.4-0
Scope: ucs-school-4.4
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2019-03-04 12:27:52 CET
OK: code change
OK: manual update test
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2019-03-12 10:58:38 CET
UCS@school 4.4 v1 has been released.

https://docs.software-univention.de/release-notes-ucsschool-4.4v1-de.html

If this error occurs again, please clone this bug.