[Fwd: NT_STATUS_BUFFER_TOO_SMALL when trying to serve 70 printers to Win2K]

Gerald Carter jerry at samba.org
Fri Mar 1 08:49:02 GMT 2002


On Thu, 28 Feb 2002, Homann, Mathias wrote:

> "Homann, Mathias" wrote:
> > 
> > Hi,
> > 
> > samba version is 2.2.3a, printcap and smb.conf contains 70 printers, OS
> > is HP-UX 11.00
> > 
> > root at borne/0 # rpcclient -U---------- -c "enumprinters" ux-test222
> > cmd = enumprinters
> > enumprinters
> > result was NT_STATUS_BUFFER_TOO_SMALL
> > 
> > with samba 2.2.2 I get:
> > root at borne/0 # rpcclient -U---------- -c "enumprinters" ux-test222
> > rpc_api_pipe: cmd 26 on pipe 702d failed to return data.
> > result was NT_STATUS_UNSUCCESSFUL
> > 
> > any hints?
> > 
> > bye
> >         MH

Enumprinters in rpcclient in 2.2.3a is buggy.  It should make two RPC 
calls.  One to determine the buffer size needed and another to 
retrieve the results.  It only does the first call I think.







cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba-technical mailing list