Checking printer jobs from a Windows 2016 server with rpcclient fails with "result was WERR_ACCESS_DENIED"

Solution Verified - Updated -

Issue

We run a Windows Server 2016 server, and connected a printer to it. When we check jobs of the printers by rpcclient command, it always fails. When we used to run Windows Server 2012, the rpcclient command from the same server never failed.

# rpcclient -c "enumjobs testprinter" -U user%pass 10.0.0.1
result was WERR_ACCESS_DENIED

Windows Support says that when Windows Server 2016 recieved a packet whose BuildNumber < 6000, Windows Server 2016 treats it as an error. The source code of samba-client shows that rpcclient command send a packet whose BuildNumber is 1381. We cannot find any setting we can change the number.

It seems that BuildNumber of samba-client (1381) is not supported for Windows Server 2016 (>6000). Could you please consider to fix samba-client so that Windows Server 2016 can accept packets from rpcclient command?

Is there any way to change BuildNumber to more than 6000?

Environment

  • Red Hat Enterprise Linux (RHEL) 7, all releases before 7.7
  • samba-client

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content