NT printing

Alan Hourihane alanh at pinacl.co.uk
Wed Sep 22 10:50:03 GMT 1999


I can add the printer to print$ and it copies some files, but it
still doesn't create and config files for samba to be able
to read.

For example.

I've added a HP LaserJet 4 to print$ and it's copied the 4 files
HP4PLUS6.PPD  PSCRIPT.DLL   PSCRIPT.HLP   PSCRPTUI.DLL
to the print$ share.

But I know Samba 2.1 looks for files called NTprinter_<sharename>
and NTdriver_<drivername> but I don't know how to create these
properly so that Samba knows what to dish back to the client.

If you check the nt_printing.c file there are comments about these
files too.

If I then try to add that printer to the workstation I get an 'unknown
error' occurred when double clicking the printer's sharename in
the add printer box.

I've narrowed the problem down to these NTprinter/NTdriver files that
need to be created to work properly.

Alan.

-----Original Message-----
From:	Dave.Stevenson at durham.ac.uk [SMTP:Dave.Stevenson at durham.ac.uk]
Sent:	22 September 1999 11:13
To:	Multiple recipients of list SAMBA-NTDOM
Subject:	Re: NT printing

I'm not authoritative on this but have played a little..

I browsed the server, opened the printers folder and used "Add Printer"
then when prompted "Have disk" and loaded the drivers from the CD on
my workstation (NT4/SP5). (Make a print$ share to hold the drivers)
The files were created by samba. Can make
changes to forms etc. from workstation. 

(Get multiple entries for forms in the ntforms.def file but a simple
sort -u removes the duplicates.

I can then mount printers and print....but

1/ Spoolss on thee workstation crashes out when you add printer. ( But
seems to get to the end of add printer process OK. restarting spoolss
works and printer is seen.

2/ the print queue display code is not there yet apparently so the queue display
does not refresh.

3/ Found the NT printing unworkable at the moment but interesting :)
It is experimental code after all and a priviledge to play with it.

The 2.0.5 mainline code I found works well with printers as LANMAN connections and
by creating a print$ share I can download drivers from the server (though
not automatically...anyone done this?) 

> 
> How do you create the NTprinter_??? and NTdriver_???
> files with the correct entries for Samba 2.1prealpha ?
> 
> I can see things like 
> 
> starttime
> printername
> servername
> 
> etc, but how do I create them ?
> 
> Thanks.
> 
> Alan.
> 



More information about the samba-ntdom mailing list