Greetings,
I have the same/similar symptoms mentioned here.
https://bugs.rockylinux.org/view.php?id=5743
If I manually create a shared printer, and send a print
job, then all CUPS shared printers will appear as shares.
Unfortunately, this does not survive a reboot.
This has been broken in my environment for some time.
I was running Debian 12 with SAMBA Version 4.17.12-Debian.
I upgraded to Debian 13, now with SAMBA Version
4.22.6-Debian-4.22.6+dfsg-0+deb13u1
yet the problem still persists.
Any advise to further troubleshoot or fix this is greatly appreciated.
Thanks!
Eric
DETAILS:
Member server Debian 13
#samba-tool testparm
INFO 2026-01-25 08:32:45,204 pid:13800
/usr/lib/python3/dist-packages/samba/netcmd/testparm.py #96: Loaded smb
config files from /etc/samba/smb.conf
INFO 2026-01-25 08:32:45,205 pid:13800
/usr/lib/python3/dist-packages/samba/netcmd/testparm.py #97: Loaded
services file OK.
Press enter to see a dump of your service definitions
# Global parameters
[global]
load printers = Yes
log file = /var/log/samba/%m.log
log level = 1
printcap name = cups
realm = WAGNER.LAN
security = ADS
workgroup = WAGNER
idmap config * : range = 10000-9999999
idmap config * : backend = autorid
printing = cups
[lp1]
comment = LP1 Printer
guest ok = Yes
path = /var/tmp
printable = Yes
printer name = Cups-PDF
[printers]
browseable = No
comment = All Printers
path = /var/tmp
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
read only = No
If I send print job using the following commaond from my server,
CUPS printers become available in SAMBA
smbclient -N //localhost/lp1 -c 'print /etc/issue'
Printer "lp1" always shows as a share, but it's still not usable
until I run the command above, so manually creating the printers
in smb.conf is not a viable workaround.
Even after I get the shared printers to show as available
shares, trying to connect still fails with generic Windows
error "check name".
Double clicking the "lp1" shared printer generates the following
in winbindd.log
[2026/01/25 08:38:13.884485, 1, traceid=15257]
source3/winbindd/wb_lookupsid.c:102(wb_lookupsid_recv)
Failed with NT_STATUS_INVALID_SID.
[2026/01/25 08:38:13.884548, 1, traceid=15257]
source3/winbindd/wb_lookupsids.c:669(wb_lookupsids_recv)
Failed with NT_STATUS_INVALID_SID.
[2026/01/25 08:38:13.884571, 1, traceid=15257]
source3/winbindd/wb_sids2xids.c:784(wb_sids2xids_recv)
Failed with NT_STATUS_INVALID_SID.
[2026/01/25 08:38:13.884589, 1, traceid=15257]
source3/winbindd/winbindd_sids_to_xids.c:113(winbindd_sids_to_xids_recv)
Could not convert sids: NT_STATUS_INVALID_SID
[2026/01/25 08:38:13.885819, 1, traceid=15257]
source3/winbindd/wb_sids2xids.c:368(wb_sids2xids_lookupsids_done)
Failed with NT_STATUS_INVALID_SID.
[2026/01/25 08:38:13.906799, 1, traceid=15264]
source3/winbindd/wb_lookupsid.c:102(wb_lookupsid_recv)
Failed with NT_STATUS_INVALID_SID.
[2026/01/25 08:38:13.907056, 1, traceid=15264]
source3/winbindd/wb_lookupsids.c:669(wb_lookupsids_recv)
Failed with NT_STATUS_INVALID_SID.
[2026/01/25 08:38:13.907129, 1, traceid=15264]
source3/winbindd/wb_sids2xids.c:784(wb_sids2xids_recv)
Failed with NT_STATUS_INVALID_SID.
[2026/01/25 08:38:13.907159, 1, traceid=15264]
source3/winbindd/winbindd_sids_to_xids.c:113(winbindd_sids_to_xids_recv)
Could not convert sids: NT_STATUS_INVALID_SID
[2026/01/25 08:38:13.908351, 1, traceid=15264]
source3/winbindd/wb_sids2xids.c:368(wb_sids2xids_lookupsids_done)
Failed with NT_STATUS_INVALID_SID.