[Samba] Samba-Cups: all works except browsing when printer is not
defined in smb.conf
Koen Linders
koen.linders at koca.be
Thu Jul 2 09:37:28 GMT 2009
Noone has an idea why normal share browsing works, connecting to printers
via "\\servername\printername" works, but not browsing for the shared CUPS
printers (Win2K, XP or Vista)? They also don't show up for smbclient -L
localhost -N (of smbclient -L servername -U root). I've been searching
through the MARC.info and someone suggests the length of the name, but the
printer names are short like 2420N-240.
When I add this printer to smb.conf, browsing works. And it shows up with
smbclient -L servername -N.
[KonicaMinolta]
comment = LM 1ste
path = /data/spool
guest ok = Yes
printable = Yes
More info lower.
When changing log lvl to 3 and per machine I get these to parts when
clicking the Printers and Faxes section from the server.
* Vista browsing on log lvl. 3
[2009/07/02 10:42:30, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2222)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine
MPI1337. Error was NT_STATUS_ACCESS_DENIED
[2009/07/02 10:42:30, 2]
rpc_server/srv_spoolss_nt.c:spoolss_connect_to_client(2568)
spoolss_connect_to_client: unable to open the spoolss pipe on machine
MPI1337. Error was : NT_STATUS_ACCESS_DENIED.
[2009/07/02 10:42:30, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(529)
free_pipe_context: destroying talloc pool of size 120
[2009/07/02 10:42:30, 3] smbd/process.c:process_smb(1111)
Transaction 4064 of length 156
[2009/07/02 10:42:30, 3] smbd/process.c:switch_message(915)
switch message SMBtrans (pid 22610) conn 0x84186b8
[2009/07/02 10:42:30, 3] smbd/ipc.c:handle_trans(373)
trans <\PIPE\> data=68 params=0 setup=2
[2009/07/02 10:42:30, 3] smbd/ipc.c:named_pipe(340)
named pipe command on <> name
[2009/07/02 10:42:30, 3] smbd/ipc.c:api_fd_reply(300)
Got API command 0x26 on pipe "spoolss" (pnum 713e)
[2009/07/02 10:42:30, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(529)
free_pipe_context: destroying talloc pool of size 0
[2009/07/02 10:42:30, 3] rpc_server/srv_pipe.c:api_rpcTNP(2265)
api_rpcTNP: rpc command: SPOOLSS_RFNPCNEX
[2009/07/02 10:42:30, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(529)
free_pipe_context: destroying talloc pool of size 24
* WinXP browsing on log lvl. 3
[2009/07/02 10:43:43, 3] smbd/ipc.c:named_pipe(340)
named pipe command on <> name
[2009/07/02 10:43:43, 3] smbd/ipc.c:api_fd_reply(300)
Got API command 0x26 on pipe "spoolss" (pnum 709a)
[2009/07/02 10:43:43, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(529)
free_pipe_context: destroying talloc pool of size 0
[2009/07/02 10:43:43, 3] rpc_server/srv_pipe.c:api_rpcTNP(2265)
api_rpcTNP: rpc command: SPOOLSS_RFNPCNEX
[2009/07/02 10:43:43, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(529)
free_pipe_context: destroying talloc pool of size 24
-----Oorspronkelijk bericht-----
Van: samba-bounces+koen.linders=koca.be at lists.samba.org
[mailto:samba-bounces+koen.linders=koca.be at lists.samba.org] Namens Koen
Linders
Verzonden: dinsdag 30 juni 2009 12:10
Aan: samba at lists.samba.org
Onderwerp: [Samba] Samba-Cups: all works except browsing when printer is not
defined in smb.conf
Cups 1.2.7
Debian Etch with Samba 3.0.24
Clients: WinXP SP3 (with Firewall completely off for testing)
When I define a printer specifically in smb.conf, they show up as shared
printers in WinXP. But when I follow the normal way (see below) to load all
from cups they don't.
I followed mainly the latest SAMBA-HOWTO (chapter 21-22)
The only error I see in log.smbd when accessing the Printers&Faxes where
they should be, is:
[2009/06/30 11:13:50, 0] smbd/service.c:make_connection(1111)
mpi025 (192.168.1.106) couldn't find service
::{2227a280-3aea-1069-a2de-08002b30309d}
When I add them by name instead of via browsing all works, but I wish to
understand what goes wrong and where.
This works:
runas /netonly /user:root "rundll32 printui.dll,PrintUIEntry /p /t3 /n
"\\newton\2420N-240"
rundll32 printui.dll,PrintUIEntry /in /n "\\newton\2420N-240"
Any suggestions would be very welcome.
Koen Linders
Extra relevant stuff.
*Checking cups support for samba: ldd `which smbd`
-snip-
libcups.so.2 => /usr/lib/libcups.so.2 (0xb7d9b000)
-snip-
*relevant samba sections
smb.conf
printing = cups
printcap name = cups
load printers = yes
[printers]
comment = Samba Printers Spool
path = /data/spool
printable = yes
guest ok = yes
browseable = no
writable = no
[print$]
comment = Printer Drivers
path = /data/printers
browseable = yes
guest ok = yes
read only = yes
write list = root +domadmins
*permissions on maps
drwxrwsrwx 3 root domadmins 4096 2009-06-29 13:25 printers
drwxrwxrwt 2 root root 4096 2009-06-29 13:50 spool
*driver installation from cups to samba
I did put following items in /usr/share/cups/drivers
cups6.inf (from www.cups.org)
cups6.ini (from www.cups.org)
cupsps6.dll (from www.cups.org)
cupsui6.dll (from www.cups.org)
ps5ui.dll (from your Windows system)
pscript.hlp (from your Windows system)
pscript.ntf (from your Windows system)
pscript5.dll (from your Windows system)
And to confirm to add drivers to [print$]
cupsaddsmb -U root -v -a -H newton
-snipped all extra info showing only one printer-
Printer Driver 2420N-240 successfully installed.
Succesfully set 2420N-240 to driver 2420N-240.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list