Bug 15121 - Windows Print Management Console does not list printers and drivers after upgrade to 4.16
Summary: Windows Print Management Console does not list printers and drivers after upg...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Printing (show other bugs)
Version: 4.16.2
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
Depends on:
Reported: 2022-07-14 07:29 UTC by Christian Naumer
Modified: 2022-08-08 13:53 UTC (History)
2 users (show)

See Also:

Screenshot Windows Print Management Console (14.57 KB, image/png)
2022-07-14 07:29 UTC, Christian Naumer
no flags Details
Screenshot Driver Management (21.85 KB, image/png)
2022-07-14 07:30 UTC, Christian Naumer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Naumer 2022-07-14 07:29:28 UTC
Created attachment 17420 [details]
Screenshot Windows Print Management Console

After the upgrade to 4.16 from 4.15 the Windows Print Management Console does not list printers and drivers. See screenshots attached. If you click on "manage drivers"then all the drivers are listed.

These commands can list printers and drivers without problems.

rpcclient localhost -U "user" -c "enumdrivers"
rpcclient localhost -U "user" -c "enumprinters"

Also Upload of drivers fails. 

On the printserver nothing in the logs stands out.

The system is a Rocky Linux 8.6 with the Sernet packages.

Here is the smb.conf

        netbios name = Printserver
        server string = Printserver
        security = ADS
        realm = HQ.DOMAIN-IT.DE
        workgroup = DOMAIN-02
        max log size = 50000
        disable netbios = yes
        smb ports = 445
        server min protocol = SMB2
        client min protocol = SMB2
        #log level = 5
        log level = 1 auth_audit:2
        logging =syslog only
        kerberos method = secrets and keytab
        dedicated keytab file = /etc/krb5.keytab
        writeable =YES
        map acl inherit = yes
        store dos attributes = yes
        inherit acls = Yes
        username map = /etc/samba/smbusers
        interfaces = lo eth0
        bind interfaces only = Yes
        # Default idmap config used for BUILTIN and local windows accounts/groups
        idmap config *:backend = tdb
        idmap config *:range = 1000000-2000000

        # idmap config for domain DOMAIN-02
        idmap config DOMAIN-02:backend = ad
        idmap config DOMAIN-02:range = 500-65555
        idmap config DOMAIN-02:schema_mode = rfc2307
        idmap config DOMAIN-02:unix_nss_info = yes
        winbind use default domain = Yes
        winbind offline logon = yes
        winbind refresh tickets = yes
        machine password timeout = 604800
        rpc_server:spoolss = external
        rpc_daemon:spoolssd = fork
        spoolss: architecture = Windows x64
        min domain uid = 500

       path = /var/spool/samba/
       printable = yes
       printing = cups

       path = /srv/samba_printer_drivers/
       read only = no
Comment 1 Christian Naumer 2022-07-14 07:30:08 UTC
Created attachment 17421 [details]
Screenshot Driver Management
Comment 2 Christian Naumer 2022-07-14 12:23:24 UTC
I should also make it clear that printing works without problems.
Comment 3 Louis 2022-08-08 13:41:52 UTC
try in smb.conf:  min domain uid = 0
Comment 4 Christian Naumer 2022-08-08 13:46:18 UTC
Tried that already. I am doing this with a user that is in the Print Operators group and that has the SePrintOperatorPrivilege granted.
Comment 5 Christian Naumer 2022-08-08 13:53:02 UTC
What also might be interesting that an upgrade to 4.16.3 breaks printing completely. Downgrade to 4.15. fixes the printing but not Print Management Console.
Is this working for others?