Univention Bugzilla – Bug 43768
Setting sambaCustomSettings via udm doesn't work at all
Last modified: 2018-04-13 13:30:23 CEST
# 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
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
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