Bug 14919 - Samba returns empty list of printers
Summary: Samba returns empty list of printers
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Printing (show other bugs)
Version: 4.13.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-25 17:33 UTC by Alex K
Modified: 2021-11-25 19:39 UTC (History)
0 users

See Also:


Attachments
log.smbd (395.26 KB, text/plain)
2021-11-25 17:33 UTC, Alex K
no flags Details
testparm-sv.txt (12.08 KB, text/plain)
2021-11-25 17:34 UTC, Alex K
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex K 2021-11-25 17:33:49 UTC
Created attachment 17027 [details]
log.smbd

Since the upgrade from 4.11 to 4.13 Samba returns an empty list of printers.

$ rpcclient localhost -c 'timeout 90000; enumprinters' 
Enter korobkin's password: 
timeout is 90000
No printers returned.

Local CUPS exports about 800 printers, and Samba 4.11 used to work with them OK, but 4.13 fails to get a list. 

These lines seem to be the most suspicious in the log:

[2021/11/25 17:13:33.674699,  2, pid=62409, effective(0, 0), real(0, 0)] ../../source3/rpc_client/cli_winreg_spoolss.c:1518(winreg_get_printer)
  winreg_get_printer: Could not open key SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\printers: WERR_FILE_NOT_FOUND

[2021/11/25 17:13:33.677903,  1, pid=62409, effective(0, 0), real(0, 0)] ../../source3/printing/printer_list.c:234(printer_list_get_last_refresh)
  Failed to fetch record!


Why would it be looking in SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\printers, it's not supposed to exist. All the printers are listed under \Print\Printers.
Comment 1 Alex K 2021-11-25 17:34:09 UTC
testparm -sv attached
Comment 2 Alex K 2021-11-25 17:34:28 UTC
Created attachment 17028 [details]
testparm-sv.txt