[Samba] printing woos (CUPS + automatic printer download...)
IOhannes zmoelnig
zmoelnig at iem.kug.ac.at
Tue Nov 12 17:25:11 GMT 2002
hija !
i am trying to add my laserprinter (HP2200d) to the samba-shares so that
my windos-users can print..
unfortunately this will not work
i have read the documentation -- unfortunately it still does not work...
i am using samba-2.2.4 (with LDAP-support) on a woody-system.
furthermore i am using cups-1.1.15
to be precise: the "cupsaddsmb" does not work correctly
i have narrowed the problem to the rpcclient's "adddriver"-command,
which returns "NT_STATUS_UNSUCCESSFUL"
the command is
<snip>
adddriver "Windows NT x86"
"Laserdrucker:ADOBEPS5.DLL:Laserdrucker.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"
</snip>
all the files are in /etc/samba/drivers/W32X86
the log.smbd (loglevel 3) says something like
[2002/11/12 17:47:12, 2] smbd/service.c:make_connection(331)
Invalid username/password for print$ [root]
[2002/11/12 17:47:12, 3] smbd/sec_ctx.c:pop_sec_ctx(421)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/11/12 17:47:12, 0] printing/nt_printing.c:get_correct_cversion(1089)
get_correct_cversion: Unable to connect
any ideas where i should look closer ?
i don't know which username/password -pair i should supply, but the
"smbclient"-calls for copying the "ADOBE*" files into
/etc/samba/drivers/W32X86 did work with root/<secret>
why does the rpc-call fail ?
mfg.dasr.
IOhannes
following are my smb.conf and the smbd-log
<SMB.CONF>
[global]
workgroup = LOCALNET
netbios name = PRINTER
server string = %h server (Samba %v)
security = SHARE
encrypt passwords = true
# passwd program = /usr/bin/passwd %u
# passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
ldap server = ldap.localnet
ldap suffix = dc=iemnet
ldap admin dn = "uid=Manager,ou=Administration,dc=iemnet"
ldap ssl = yes
syslog = 0
max log size = 1000
log level = 3
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
SO_RCVBUF=4096
dns proxy = No
hosts allow = 192.168.7.
load printers = yes
printing = cups
printcap name = cups
[public]
comment = Samba public
writable = yes
browseable = yes
path = /var/share
public = yes
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
public = yes
guest ok = yes
writable = no
printer admin = root zmoelnig zeininger
[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root zmoelnig zeininger
</SMB.CONF>
<LOG.SMBD>
[2002/11/12 18:21:30, 3] smbd/process.c:process_smb(866)
Transaction 12 of length 96
[2002/11/12 18:21:30, 3] smbd/process.c:switch_message(673)
switch message SMBntcreateX (pid 16876)
[2002/11/12 18:21:30, 3] smbd/nttrans.c:nt_open_pipe(559)
nt_open_pipe: Known pipe spoolss opening.
[2002/11/12 18:21:30, 3] smbd/process.c:process_smb(866)
Transaction 13 of length 150
[2002/11/12 18:21:30, 3] smbd/process.c:switch_message(673)
switch message SMBtrans (pid 16876)
[2002/11/12 18:21:30, 3] smbd/ipc.c:reply_trans(480)
trans <\PIPE\> data=72 params=0 setup=2
[2002/11/12 18:21:30, 3] smbd/ipc.c:named_pipe(334)
named pipe command on <> name
[2002/11/12 18:21:30, 3] smbd/ipc.c:api_fd_reply(296)
Got API command 0x26 on pipe "spoolss" (pnum 777a)api_pipe_bind_req:
\PIPE\spoolss -> \PIPE\spoolss
[2002/11/12 18:21:30, 3] smbd/process.c:process_smb(866)
Transaction 14 of length 474
[2002/11/12 18:21:30, 3] smbd/process.c:switch_message(673)
switch message SMBtrans (pid 16876)
[2002/11/12 18:21:30, 3] smbd/ipc.c:reply_trans(480)
trans <\PIPE\> data=396 params=0 setup=2
[2002/11/12 18:21:30, 3] smbd/ipc.c:named_pipe(334)
named pipe command on <> name
[2002/11/12 18:21:30, 3] smbd/ipc.c:api_fd_reply(296)
Got API command 0x26 on pipe "spoolss" (pnum 777a)free_pipe_context:
destroying talloc pool of size 0
[2002/11/12 18:21:30, 3] rpc_server/srv_pipe.c:api_pipe_request(1148)
Doing \PIPE\spoolss
[2002/11/12 18:21:30, 3] rpc_server/srv_pipe.c:api_rpcTNP(1180)
api_rpcTNP: pipe 30586 rpc command: SPOOLSS_ADDPRINTERDRIVER
[2002/11/12 18:21:30, 3] smbd/sec_ctx.c:push_sec_ctx(282)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2002/11/12 18:21:30, 3] smbd/uid.c:push_conn_ctx(284)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2002/11/12 18:21:30, 3] smbd/sec_ctx.c:set_sec_ctx(314)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2002/11/12 18:21:30, 3] lib/access.c:check_access(318)
check_access: no hostnames in host allow/deny list.
[2002/11/12 18:21:30, 2] lib/access.c:check_access(329)
Allowed connection from (192.168.7.106)
[2002/11/12 18:21:30, 2] smbd/service.c:make_connection(331)
Invalid username/password for print$ [root]
[2002/11/12 18:21:30, 3] smbd/sec_ctx.c:pop_sec_ctx(421)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2002/11/12 18:21:30, 0] printing/nt_printing.c:get_correct_cversion(1089)
get_correct_cversion: Unable to connect
[2002/11/12 18:21:30, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(446)
free_pipe_context: destroying talloc pool of size 380
[2002/11/12 18:21:30, 3] smbd/process.c:process_smb(866)
Transaction 15 of length 45
[2002/11/12 18:21:30, 3] smbd/process.c:switch_message(673)
switch message SMBclose (pid 16876)
[2002/11/12 18:21:35, 3] smbd/sec_ctx.c:set_sec_ctx(314)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
</LOG.SMBD>
More information about the samba
mailing list