Bug 1740 - CUPS integration does not work properly when not linked
CUPS integration does not work properly when not linked
Product: Samba 3.0
Classification: Unclassified
Component: Printing
All Linux
: P3 major
: none
Assigned To: Gerald (Jerry) Carter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-09-08 09:08 UTC by Florian Effenberger
Modified: 2004-10-19 10:05 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Effenberger 2004-09-08 09:08:27 UTC
I have a Samba 3.0.6 server and a CUPS 1.1.12 server running on my machine. 
They have been compiled with:

./configure --with-pam --with-pam_smbpass --with-quotas --with-sys-quotas

./configure --prefix=/usr/local/cups --with-cups-user=cups --with-cups-
group=cups --with-docdir=/usr/local/cups/docdir --with-
logdir=/usr/local/cups/logdir --with-rcdir=/usr/local/cups/rcdir --enable-ssl

As you can see, CUPS lies in an unusual path, so Samba did NOT see the cups-
config file and was NOT linked to CUPS. Your documentation states that even 
without linking it should work fine, however, it doesn't.

/etc/printcap contains:
# This file was automatically generated by cupsd(8) from the
# /usr/local/cups/etc/cups/printers.conf file.  All changes to this file
# will be lost.

This is the printer I set up via CUPS. I can print to it using the CUPS web 
interface (print test page).

My /usr/local/samba/lib/smb.conf looks like:

# Samba config file created using SWAT
# from (
# Date: 2004/09/08 17:58:00

# Global parameters
        workgroup = MYGROUP
        netbios aliases = FILESERVER
        server string = Dateiserver
        security = SHARE
        passdb backend = tdbsam
        passwd program = /usr/bin/passwd %u
        passwd chat = *new*password* %n\n *new*password* %n\n *updated*
        unix password sync = Yes
        time server = Yes
        deadtime = 15
        printcap name = cups
        os level = 65535
        preferred master = Yes
        domain master = Yes
        ldap ssl = no
        invalid users = root
        admin users = flux
        write list = flux
        printer admin = flux
        create mask = 0700
        directory mask = 0700
        printing = cups
        print command = /usr/local/cups/bin/lp -c -d%p %s; rm %s
        lpq command = /usr/local/cups/bin/lpstat -o%p
        lprm command = /usr/local/cups/bin/cancel %p-%j
        lppause command = /usr/local/cups/bin/lp -i %p-%j -H hold
        lpresume command = /usr/local/cups/bin/lp -i %p-%j -H resume
        queuepause command = /usr/local/cups/bin/disable %p
        queueresume command = /usr/local/cups/bin/enable %p

(and then some file shares follow)

I cannot see the CUPS printers in my list (using Windows and smbclient). There 
is no chance to print with my Windows clients.
Comment 1 Florian Effenberger 2004-09-08 11:07:55 UTC
Sorry, I have to correct myself.
It is CUPS 1.1.20.
Comment 2 Gerald (Jerry) Carter 2004-10-19 10:05:12 UTC
if cups is not linked in then you will have to set 
'printcap name = /etc/printcap' (where /etc/printcap is 
the printer listing exported from cups.