Univention Bugzilla – Bug 55492
Samba keeps showing deleted printers
Last modified: 2023-02-01 17:24:18 CET
Samba keeps showing deleted printers. The cups-printers.py listener doesn't remove printer information from its local registry and /var/cache/samba/printing/ . Looks like cleaning up these places halps avoiding the issue. Also maybe services need to be reloaded. Some investigation required. We should also write a test case for this. +++ This bug was initially created as a clone of Bug #35068 +++ Samba and Windows clients communicate information about printers via the registry on the Samba server. This information can be retrieved from the Samba server remotely via regedt32 orlocally via this samba shell command: net registry enumerate_recursive 'HKLM\Software\Microsoft\Windows NT\CurrentVersion\Print' When printers are deleted via UMC this information is not cleaned up. This may potentially lead to configuration-issues when a new printer is created under the name of a previously deleted one. E.g. the name of the windows driver assigned for client side rendering may still be one for a perviously used printer hardware. If this issues like this occur and are irritating to customers, we may remove the printer specific registry information from samba in the delete handler of the listener module cups-printers.py by something like this: 'net registry deletekey_recursive "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\%s"' % (printername,)
0124f7303b | Remove printer from samba registry and cache tdb too a04528569f | minor code cleanup 945bbd93aa | minor code cleanup 8b7a0879a2 | Advisory update Package: univention-printserver Version: 13.0.5-2A~5.0.0.202301261714 Branch: ucs_5.0-0 Scope: errata5.0-2
OK: Printers are removed OK: tdb file is removed OK: error handling OK: yaml Verified
<https://errata.software-univention.de/#/?erratum=5.0x563>