Bug 2091 - extended printer definition not working
extended printer definition not working
Product: Samba 3.0
Classification: Unclassified
Component: Printing
x86 Linux
: P3 critical
: none
Assigned To: Gerald (Jerry) Carter
Samba QA Contact
: 2079 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2004-11-26 05:08 UTC by Wolfgang Fuertbauer
Modified: 2005-08-24 10:20 UTC (History)
1 user (show)

See Also:

prevent remove_stale_printers() from removing statically defined printer shares (1.35 KB, patch)
2004-12-02 10:18 UTC, Gerald (Jerry) Carter
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Fuertbauer 2004-11-26 05:08:54 UTC
mixture between printers from /etc/printcap and printers defined in smb.conf
(with own printcommand); printers from printcap work others not!
see output (there should be the printer [PDF-Screen]):

jukebox:/etc/samba # smbclient -L localhost
Domain=[EBEWEAT] OS=[Unix] Server=[Samba 3.0.9-SUSE]

        Sharename       Type      Comment
        ---------       ----      -------
        dr-dv01         Printer   OPTRA T 614 EDV-Lager
        IPC$            IPC       IPC Service (Samba 3.0.9-SUSE)
        ADMIN$          IPC       IPC Service (Samba 3.0.9-SUSE)
Domain=[EBEWEAT] OS=[Unix] Server=[Samba 3.0.9-SUSE]

        Server               Comment
        ---------            -------

       # debuglevel 9
        workgroup = EBEWEAT
        netbiosname = jukebox
        password server = *
        security = DOMAIN
        encrypt passwords = Yes
        map to guest = Bad User
        password server = *
        name resolve order = lmhosts wins bcast host
        printing = LPRNG
        printcap name = /etc/printcap
        # load printers = Yes
        time server = Yes
        os level = 100
        preferred master = True
        wins support = Yes
        kernel oplocks = No

        path = /srv/ftp/pub/mp3
        browseable = no

        comment = All Printers
        path = /tmp
        create mask = 0700
        printable = Yes
        browseable =Yes

        comment = PDF-Writer (screen optimized)
        path = /tmp/pdf
        read only = No
        create mask = 0777
        guest ok = Yes
        printable = Yes
        print command = /usr/local/bin/pdf-sender %s %u screen
Comment 1 Gerald (Jerry) Carter 2004-12-02 08:32:42 UTC
ok.  The problem is that remove_stale_printers() is removing 
all printers that aren't validated by pcap_printername_ok().
Our bug.  Working on a fix now.
Comment 2 Gerald (Jerry) Carter 2004-12-02 10:18:47 UTC
Created attachment 820 [details]
prevent remove_stale_printers() from removing statically defined printer shares
Comment 3 Gerald (Jerry) Carter 2004-12-02 10:19:34 UTC
ok.  This patch will fix the bug.  Checked in for 3.0.10pre1
Comment 4 Gerald (Jerry) Carter 2004-12-02 10:23:33 UTC
*** Bug 2079 has been marked as a duplicate of this bug. ***
Comment 5 Gerald (Jerry) Carter 2005-08-24 10:20:23 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.