[Samba] printing / printcap name in samba-3.0.0 BUG

Andrew Bartlett abartlet at samba.org
Wed Nov 12 23:15:00 GMT 2003


On Thu, 2003-11-13 at 04:31, Joerg Pulz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hi,
> 
> i currently tried to setup a samba print server which uses cups as default
> printing system and for some special printers i want to use my own
> scripts.
> 
> samba-3.0.0 is linked against libcups and printing via cups and the
> driver download works perfect.
> 
> whe i try to specify a special printer with "printing = bsd/lprng/sysv" my
> own "print command" and a special "printcap" inside the service
> description, samba is always trying to print via cups and
> testparm shows the following warning:
> - --
> Processing section "[special-printer]"
> Global parameter printcap name found in service section!

Indeed.  It would not make sense for the printcap to be per-share, as
its purpose in life is to provide the list of printers - once you know
what printer you are contacting, there is no need for the printcap.

> the samba-howto-collection describes it this way, so it's eihter an error
> in the howto document or in the smb.conf file processing.

Where exactly?

> the definition of "printing" and "print command" is correctly handled by
> testparm, but is completely ignored by smbd.
> if i specify a "printcap name" manually in the global section, it is
> correctly shown by testparm, but testprns and smbd is using cups to find
> the printer. when i change "printing" to something other than cups
> testparm shows this correct, but again, testprns and smbd ignores this
> completely.
> 
> i recompiled everything without cups support.
> testparm shows everything correct, ut the warning about the "printcap"
> inside the service is still there.
> i tried testprns and it ignores my gloal "printcap name" completely and
> defaults to /etc/printcap. the same for smbd.
> 
> it's a little bit confusing.

With cups, if you set 'printing = cups' it overrides everything else. 
You cannot specify a printcap, or a print command.  This should be
better documented (file a bug).

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20031113/e71f0464/attachment.bin


More information about the samba mailing list