Univention Bugzilla – Bug 18336
Falsches parsing von sambaCustomSettings
Last modified: 2022-06-30 14:38:55 CEST
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
This problem popped up again during my attempt to override the "vfs objects" parameter for some share via sambaCustomSettings. With current Samba code (3.6.8 and 4.0.3) the following workaround was possible which uses tabs instead of spaces to avoid splitting at the wrong locations: eval "$(ucr shell)"; \ udm shares/share modify \ --dn "cn=opsi_depot,cn=$(hostname -f),cn=shares,$ldap_base" \ --set sambaCustomSettings="$(printf 'vfs\tobjects \t')" This sets "vfs<tab>objects = <tab>" in the correspoding samba share subfile. Samba accepted this setting.
This issue has been filed against UCS 2.3. UCS 2.3 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug". In this case please provide detailed information on how this issue is affecting you.