printer name not returned correctly

Ronan Waide waider at waider.ie
Fri Mar 14 15:40:24 GMT 2003


Hi,

still messing about with printers. If I create a printer like so:

[TestP]
printer name = Test_Printer
printable = yes

and then do rpcclient enumprinters 2 against the server, I get:

        servername:[\\server]
        printername:[\\server\TestP]
        sharename:[TestP]
        portname:[HPLaserJet4050Series]
        drivername:[HP LaserJet 4050 Series PCL 5e]
        comment:[Created by rpcclient]
        location:[]
        sepfile:[]
        printprocessor:[winprint]
        datatype:[RAW]
        parameters:[]
        attributes:[0x1018]
        priority:[0x0]
        defaultpriority:[0x0]
        starttime:[0x0]
        untiltime:[0x0]
        status:[0x0]
        cjobs:[0x0]
        averageppm:[0x0]

I would have expected printername to be \\server\Test_Printer, since
that's what my NT4 box is returning for a similar setup. I've traced
through the server code and it looks okay where it's retrieving the
info from the tdb file, so that would suggest that the information is
incorrect in the tdb file. And sure enough, ntprinters.tdb has TestP
in it several times, but no sign of Test_Printer. The default info2
structure assumes a printer name of \\server\share, so maybe that
would be a good place to start.

Cheers,
Waider.
-- 
waider at waider.ie / Yes, it /is/ very personal of me.

"Crying for sympathy / crocodile cries / for the love of the crowd and the
 three cheers from everyone" - The Cure, _Disintegration_


More information about the samba-technical mailing list