Univention Bugzilla – Bug 28995
homeShare am Benutzerobjekt kann nicht gelöscht werden.
Last modified: 2018-04-13 13:29:14 CEST
-> udm users/user modify --dn uid=test1,cn=users,dc=ucs,dc=new \ --remove homeShare="cn=memberhome,cn=shares,dc=ucs,dc=new" Traceback (most recent call last): File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 237, in doit output = univention.admincli.admin.doit(arglist) File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 394, in doit out=_doit(arglist) File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 975, in _doit out.extend(object_input(module, object, input, append, remove)) File "/usr/lib/pymodules/python2.6/univention/admincli/admin.py", line 326, in object_input object[key] = [ object[key] ] File "/usr/lib/pymodules/python2.6/univention/admin/handlers/__init__.py", line 259, in __setitem__ p=s.parse(value) File "/usr/lib/pymodules/python2.6/univention/admin/syntax.py", line 282, in parse if not text or not self.regex or self.regex.match( text ) != None: TypeError: expected string or buffer Über UMC bekomme ich keine Fehler, aber die Heimatverzeichnisfreigabe ist beim nächsten Öffnen des Benutzerobjekts wieder da.
Created attachment 7388 [details] remove It works using: udm users/user modify --dn uid=test1,cn=users,dc=ucs,dc=new --set homeShare= It works also via UMC. Using --remove only works for lists but homeShare is not a multivalue and its syntax class therefore cannot handle lists. We should prevent "--remove" for non-multivalue fields in UDM-CLI to fix this. Attached patch does this by printing a warning.
comment #1 was btw. nonsense. *** This bug has been marked as a duplicate of bug 41172 ***