Bug 49665 - registry.info/variables/univention-samba4.cfg: Duplicate "samba/share/home"
registry.info/variables/univention-samba4.cfg: Duplicate "samba/share/home"
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-4-errata
Assigned To: Philipp Hahn
Florian Best
:
Depends on:
Blocks: 49060 49129 49683
  Show dependency treegraph
 
Reported: 2019-06-17 12:12 CEST by Philipp Hahn
Modified: 2021-03-19 11:25 CET (History)
1 user (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:
hahn: Patch_Available+


Attachments
Fix (2.58 KB, patch)
2019-06-19 11:07 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2019-06-17 12:12:45 CEST
# python3 /usr/sbin/ucr shell
...
configparser.DuplicateSectionError: While reading from '/etc/univention/registry.info/variables/univention-samba4.cfg' [line 241]: section 'samba/share/home' already exists

# grep -nA3 samba/share/home /etc/univention/registry.info/variables/univention-samba4.cfg
91:[samba/share/home]
92-Description[de]=Ist diese Variable auf 'yes' gesetzt, wird das Heimatverzeichnis eines Samba-Benutzers in einer Freigabe mit dem Namen des Benutzers bereitgestellt.
93-Description[en]=If this variable is set to 'yes', the home directory of a Samba user is provided on a share with the name of the user.
94-Type=str
--
241:[samba/share/home]
242-Description[de]=Ist diese Variable auf 'yes' gesetzt, wird das Heimatverzeichnis eines Samba-Benutzers in einer Freigabe mit dem Namen des Benutzers bereitgestellt.
243-Description[en]=If this variable is set to 'yes', the home directory of a Samba user is provided as a share with the name of the user.
244-Type=str

The Python3 parser for ini-files is not as lenient as the Python2 variant.
Comment 1 Philipp Hahn univentionstaff 2019-06-19 11:07:37 CEST
Created attachment 10072 [details]
Fix
Comment 2 Florian Best univentionstaff 2020-07-14 12:52:50 CEST
This was already fixed by Philipp in:

univention-samba4 (8.0.0-31)
16d7176b5240 | Bug #49665 samba: Remove duplicate UCRV
Comment 3 Philipp Hahn univentionstaff 2021-03-19 11:25:45 CET
Releases through Bug #52013
<https://errata.software-univention.de/#/?erratum=4.4x745>