Bug 12182 - SPOOLSS_ENUMPRINTERS fails with certain printer names
SPOOLSS_ENUMPRINTERS fails with certain printer names
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Printing
All All
: P5 normal
: ---
Assigned To: printing-maintainers
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2016-08-26 15:36 UTC by Mario Lipinski
Modified: 2016-08-29 03:42 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mario Lipinski 2016-08-26 15:36:34 UTC
I already reported this issue a while ago at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822574
The issue is still present in current Samba 4.4.5.

I am experiencing problems with RPC printer management 
(SPOOLSS_ENUMPRINTERS ) with certain printer names.

It looks like the problem is caused if the printer name contains an 
umlaut (non-ASCII character) as the 23rd character.



causes problems, while

aaaaaaaaaaaaaaaaaaaaaä and

work(*). I tried dozens other examples that lead me to track down and 
limit the problem as described above.

The problem is observed while using setdriver on the mentioned printer 
with rpcclient or acessing the "Remote Printers" view on Windows 7 - the 
window is blank then and no printers are displayed at all.

From the logs:

Apr 25 14:10:26 iserv smbd[12856]: ndr_push_error(5): Bad character 
Apr 25 14:10:26 iserv smbd[12856]: ndr_push_error(11): SPOOLSS Buffer: 
*r->out.info but there's no r->in.buffer
Apr 25 14:10:26 iserv smbd[12856]: api_rpcTNP: spoolss: 

(*) They do not really work, I reported this as #822571 since I do not 
think that these issues are related.