[Samba] printer.tdb (tdb_oob len errors) and Quirkiness: Solaris 9, Samba 3.0.0

Kurt Pfeifle kpfeifle at danka.de
Wed Nov 19 16:01:48 GMT 2003


Jeff Gardiner wrote:

> Kurt, thank for taking the time to answer my questions.  I very much 
> appreciate it, and of course, you've opened my eyes up to a new part of the 
> learning curve by introducing me to new and effective ways to use of the 
> rpcclient command.

[....]

>>What are you getting with these commands:
> 
> 
>>    rpcclient -Uroot -c "enumprinters" SUPERSERVER    (if you have in the
>>"description" lines two commas, there are no drivers recognized by
>>Samba....)
> 
> 
> When I first issued this command there were two commas - despite the fact that 
> I had previously associated drivers (and installed them) with this printer 

After the command

    rpcclient..... adddriver....

there will *still* be the 2 commas at that place. However, a

    rpcclient .... enumdrivers...

will show up the new driver. Only *after*

    rpcclient .... setdriver <drivername> <printername>....

will you see appearing the <drivername> associated with the printqueue
<printername> in question, and printed between these 2 commas.


[....]

> # rpcclient -Uroot -c "enumdrivers 3" superserver
> Password:
> 
> [Windows NT x86]
> 
> Printer Driver Info 3:
>         Version: [3]
>         Driver Name: [Lexmark Optra T614]
>         Architecture: [Windows NT x86]
>         Driver Path: [\\superserver\print$\W32X86\3\LMPCL2A.DLL]
>         Datafile: [\\superserver\print$\W32X86\3\LMPCL2AC.DLL]
>         Configfile: [\\superserver\print$\W32X86\3\LMPCL2AC.DLL]
>         Helpfile: [\\superserver\print$\W32X86\3\LMPCLNA.HLP]
> 
>         Dependentfiles: [\\superserver\print$\W32X86\3\mergepfm.dfm]
>         Dependentfiles: [\\superserver\print$\W32X86\3\C910BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\C750BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\E32XBM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\T62XBM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\J110BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\C720BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\T61XBM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\C710BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\W820BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\W810BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\M410BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\E855BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\OC1200BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\K1220BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\SC1275BM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\OPTRASBM.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMPCLTHK.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMHB.HLP]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMHBNDX.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMHBNDD1.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMPCL2AX.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMPCL2DD.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LEXUNST.ZIP]
>         Dependentfiles: [\\superserver\print$\W32X86\3\PTZIPW32.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LEXEDF.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMNET2PP.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LEXDRVX.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LEXCFI.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMPCL2A.ALL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LEXDRVIN.EXE]
>         Dependentfiles: [\\superserver\print$\W32X86\3\DRVNPANT.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LEXMV95.HLP]
>         Dependentfiles: [\\superserver\print$\W32X86\3\PTRESW32.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\PTGUIW32.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\PTAPIW32.DLL]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMPCLHOW.HLP]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMPCLNA.CNT]
>         Dependentfiles: [\\superserver\print$\W32X86\3\LMPCL2A$.INI]
> 
>         Monitorname: []
>         Defaultdatatype: [RAW]
> 

Oh booooyyyy -- this is a huuuuge driver! With 39 "dependent files" there
are good chances it drives your soundcard to voice a nice women's announcememt
saying "Yeer printjeeeb is reaaadyyyy...."

[....]

> I had read over a number of the man pages and other documentation including 
> John T. excellent book, but was not familiar with this use of the rpcclient 
> command.

These should be in the book also, in the chapters dealing with printing....

> I found (and find) them to be extremely useful tools, and will have 
> to reread the man pages.  I recognized that familiarity with the command line 
> tools that allow you to get to Samba's underbelly really helps in resolving 
> problems.  Thanks for posting them. 
> 

[....]

Cheers,
Kurt




More information about the samba mailing list