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

Joerg Pulz Joerg.Pulz at frm2.tum.de
Wed Nov 12 17:31:12 GMT 2003


-----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!
- --

here are the minimum settings from smb.conf:
- --
[global]
	load printers = yes
	printcap name = cups
	printing = cups

[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = no
	guest ok = no
	writable = no
	printable = yes

[special-printer]
	comment = special printer
	path = /var/spool/samba-special
	printing = bsd
	printcap name = /usr/local/etc/samba/printcap.static
	print command = /path/to/command
	public = no
	writable = no
	printable = yes
- --

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.

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.

any thoughts about this??

regards
Joerg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/sm5iSPOsGF+KA+MRAtjeAJ9y0mVcAz8COKZdR/MI+a9ct45zyQCeIlPJ
8CY17FXWSEt7cT8pKJXRKFY=
=BQcV
-----END PGP SIGNATURE-----



More information about the samba mailing list