Bug#822574: SPOOLSS_ENUMPRINTERS fails with certain printer names

2016-04-25 Thread Mario Lipinski

Sorry, forgot the version information...

I tested with Samba 2:4.4.0+dfsg-1 sources from experimental backported 
for Jessie, but I also observed the problems with 2:4.2.10+dfsg-0+deb8u2.




Bug#822574: SPOOLSS_ENUMPRINTERS fails with certain printer names

2016-04-25 Thread Mario Lipinski

Package: samba

Dear Samba maintainers,

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.


Thus

aaä

causes problems, while

aä and
aaaä

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 
conversion
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: 
SPOOLSS_ENUMPRINTERS failed.


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


--
Mit freundlichen Grüßen,
Mario Lipinski

IServ GmbH
Bültenweg 73
38106 Braunschweig

Telefon:   0531-2243666-0
Fax:   0531-2243666-9
E-Mail:i...@iserv.eu
Internet:  iserv.eu

USt-IdNr. DE265149425 | Amtsgericht Braunschweig | HRB 201822
Geschäftsführer: Benjamin Heindl, Jörg Ludwig