Undocumented smb.conf

Thomas Reifferscheid reiffer at kph.uni-mainz.de
Tue Aug 20 03:33:00 GMT 2002


There is another undocumentated thing:

man smb.conf says:

              The add printer command  is  automatically  invoked
              with the following parameter (in order:

              · printer name

              · share name

              · port name

              · driver name

              · location

              · Windows 9x driver location

It's missing the 7th parameter, the remote hostname.

See my log on debuglevel 10:

Running [/usr/local/samba/bin/addprinter.pl "druckername2"
"freigabename2"
 "Samba Printer Port" "HP LaserJet 8150 PCL 6" "stand2"
 "\\\\reifferpc\\print$\\WIN40\\0" "idefix"]

Where idefix was the remote hostname.


And here is the sourcecode, again
rpc_server/srv_spoolss_nt.c, function static BOOL
dd_printer_hook(NT_PRINTER_INFO_LEVEL *printer),
line 4856:


slprintf(command, sizeof(command)-1, "%s \"%s\" \"%s\" \"%s\" \"%s\"
\"%s\" \"%s\" \"%s\"",
         cmd, printer->info_2->printername, printer->info_2->sharename,
         printer->info_2->portname, printer->info_2->drivername,
         printer->info_2->location, driverlocation, remote_machine);


"Gerald (Jerry) Carter" wrote:

> cheers, jerry

Cheers.



More information about the samba-technical mailing list