Univention Bugzilla – Bug 33846
Share definition does not get removed if samba option is disabled
Last modified: 2020-07-03 20:52:05 CEST
The module is shipped as part of univention-samba4 as well. +++ This bug was initially created as a clone of Bug #33698 +++ Seen at ticket #2013120621005229: If disabling the "samba" option within UMC at a share, the share definition in filesystem (/etc/samba/shares.conf.d/) won't be removed. Seems to be related to the listener module, I suppose this should be done there. Discovered in UCS 3.1-1, reproduceable with UCS 3.2
Created attachment 8788 [details] fixbug33846.patch Apparently the listener only calls the module if the objectclass filter specified in the module matches the new object: '(&(objectClass=univentionShare)(objectClass=univentionShareSamba))' The attached patch fixes this: * let the module be called also if only the old object had the samba option * sanitize the share path (against ../../../../etc/passwd) * skip samba reload in postrun in case the handler didn't need to do anything
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have 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" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.