Bug 43768 - Setting sambaCustomSettings via udm doesn't work at all
Setting sambaCustomSettings via udm doesn't work at all
Status: CLOSED INVALID
Product: UCS
Classification: Unclassified
Component: UDM - CLI
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UDM maintainers
:
Depends on: 18336
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-09 14:03 CET by Michael Grandjean
Modified: 2018-04-13 13:30 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?: Yes
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 Michael Grandjean univentionstaff 2017-03-09 14:03:17 CET
# univention-app info
UCS: 4.1-4 errata406
App Center compatibility: 4
Installed: cups=1.5.3 dhcp-server=10.0.1 icinga=1.11.6-1 nagios=3.4 samba4=4.5 ucsschool=4.1 R2 v9

Current status:

# udm shares/share modify \
> --dn cn=011-1Q,cn=klassen,cn=schueler,cn=groups,ou=011,dc=schulen,dc=example,dc=org \
> --set 'sambaCustomSettings="admin users" "@lehrer-011"'
No modification: cn=011-1Q,cn=klassen,cn=schueler,cn=groups,ou=011,dc=schulen,dc=example,dc=org

# udm shares/share modify \
--dn cn=011-1Q,cn=klassen,cn=schueler,cn=groups,ou=011,dc=schulen,dc=example,dc=org \
--set sambaCustomSettings="$(printf 'admin\tusers \t@lehrer-011')"
No modification: cn=011-1Q,cn=klassen,cn=schueler,cn=groups,ou=011,dc=schulen,dc=example,dc=org


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

2010050310000386

# udm shares/share modify --dn cn=valwrite,cn=qamaster.univention.qa,cn=shares,dc=univention,dc=qa --append sambaCustomSettings='some = @"New Value", more'

# ldapsearch -x -LLL cn=valwrite  univentionShareSambaCustomSetting
dn: cn=valwrite,cn=qamaster.univention.qa,cn=shares,dc=univention,dc=qa
univentionShareSambaCustomSetting: some = @ = New Value

Wenn ich das über den UDM-Web setze:

univentionShareSambaCustomSetting: some = @"New Value", more
Comment 1 Michael Grandjean univentionstaff 2017-03-09 14:06:57 CET
Also: opsi4ucs uses this in the joinscript. I guess this is not working either:
https://github.com/opsi-org/opsi4ucs/blob/stable/99opsi4ucs.inst#L327
Comment 2 Michael Grandjean univentionstaff 2017-03-09 17:01:02 CET
Well, it's one of these days ... obviously I used the wrong DN all the time. My bad.

These commands work:

# udm shares/share modify \
> --dn "${CORRECT_DN_OF_THE_SHARE}" \
> --set 'sambaCustomSettings="admin users" "@lehrer-011"'


# udm shares/share modify \
> --dn "${CORRECT_DN_OF_THE_SHARE}" \
> --set sambaCustomSettings='"admin users" "@lehrer-011"'

→ INVALID