We need to backport d8b57e3828eac084ad302a90b33c35ff4e918e5a.
Created attachment 12450 [details]
Patches for v4-5-test
Please add to 4.5
Pushed to autobuild-v4-5-test.
Short description of the bug:
When Windows 10 calls GetPrinterDataEx with a printserver handle (not a printer handle) to query for values like Architecture, MajorVersion, etc. in order to identify the server properties and capabilities, samba currently returns WERR_INVALID_PARAMETER for all of these queries when the keyname is "". The solution is to just ignore the keyname for printerserver handle queries completely.
Pushed to v4-5-test.
Needs backports to other branches.