Problem: A printer cannot be deleted

Problem:

A printer cannot be deleted

Interner Server-Fehler in “udm/get (shares/print)”.
Request: udm/get (shares/print)

  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 78, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line 509, in _get
    obj = module.get(ldap_dn)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 86, in _decorated
    return method(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 521, in get
    obj.open()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/shares/printer.py", line 315, in open
    models = printermodel.lookup(self.co, self.lo, 'printerModel="%s*' % self['model'])
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1576, in lookup
    for dn, attrs in lo.search(filter_str, base, scope, attr, unique, required, timeout, sizelimit):
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 706, in search
    raise univention.admin.uexceptions.ldapError('%s: %s' % (_err2str(msg), filter))
ldapError: Bad search filter: (&(objectClass=univentionPrinterModels)(printerModel="C3003\riudm1e3.ppd*))

Solution:

Adjust an other printer model the printer:

ldapmodify -x -D "cn=admin,$(ucr get ldap/base)" -y /etc/ldap.secret <<%EOR
dn: cn=DruckerRICOH,cn=printers,ou=sun,dc=schein,dc=me
changetype: modify
replace: univentionPrinterModel
univentionPrinterModel: foomatic-rip/Ricoh-Aficio_3030-gutenprint-ijs.5.2.ppd
%EOR

Now the printer is visible and editable.

1 Like
Mastodon