Hi everyone, This is not a security vulnerability or bug per se, but it make false positive alerts during security. Print spool server shouldn't be enabled on domain controller, it can be a real security issue on MS-AD. On Samba-AD, when adding "disable spoolss = yes", print spooling is disabled, but it still register as up and running when doing a rpcclient enumports. Step to reproduce: * add "disable spoolss = yes" to [global] in smb.conf * restart samba server * run rpcclient [root@srvads1.mydomain.lan ~]# 'rpcclient -U administrator localhost Password for [MYDOMAIN\administrator]: rpcclient $> enumports Port Name: [Samba Printer Port] Possible workaround is just to delete the file * rm -f /usr/libexec/samba/rpcd_spoolss I choose "DCE-RPC and pipes" as a category rather than "printing", as it is not really a printing bug, and nobody like printing anyway... :-)
Created attachment 18882 [details] Patch This should help, pushing this to gitlab now
This bug was referenced in samba master: 8497fb05d8d9c082b7ba318844970f0b3227aff9
Created attachment 18899 [details] Patch from master Should apply back to all supported versions
This bug was referenced in samba v4-24-test: 9ea92994deb4edd7fadb769bd782231f5304207b
This bug was referenced in samba v4-24-stable (Release samba-4.24.0): 9ea92994deb4edd7fadb769bd782231f5304207b
This bug was referenced in samba v4-22-test: 27dad685330bc67bb7c6306ab187a734c35edf3e
This bug was referenced in samba v4-22-stable (Release samba-4.22.9): 27dad685330bc67bb7c6306ab187a734c35edf3e