I have Samba 3.0.33-3.29.el5_5.1 and Cups 1.3.7 in a Centos 5.5 x64 server.
I had configured this linux server machine to print to a shared windows 7 ultimate x64 hp laserjet 1300 printer. It had worked perfectly until today when I realized that I can't send print jobs from the server to this printer anymore.
This is a very very weird problem because I haven´t installed neither updates nor new programs in the server.
This is the cups error_log section when the printer can't print:
Code:
I [26/Nov/2010:20:08:40 -0600] [Job 332] Adding start banner page "none".
I [26/Nov/2010:20:08:40 -0600] [Job 332] Adding job file of type application/postscript.
I [26/Nov/2010:20:08:40 -0600] [Job 332] Adding end banner page "none".
I [26/Nov/2010:20:08:40 -0600] [Job 332] Queued on "hp1300" by "administrador".
I [26/Nov/2010:20:08:40 -0600] [Job 332] Started filter /usr/lib/cups/filter/pstops (PID 4325)
I [26/Nov/2010:20:08:40 -0600] [Job 332] Started filter /usr/lib/cups/filter/foomatic-rip (PID 4326)
I [26/Nov/2010:20:08:40 -0600] [Job 332] Started backend /usr/lib/cups/backend/smb (PID 4327)
E [26/Nov/2010:20:08:41 -0600] [Job 332] Session setup failed: SUCCESS - 0
E [26/Nov/2010:20:08:41 -0600] [Job 332] No ticket cache found for userid=501
E [26/Nov/2010:20:08:41 -0600] [Job 332] Can not get the ticket cache for administrador
E [26/Nov/2010:20:08:41 -0600] [Job 332] Session setup failed: Error: Unknown error (128,38912)
E [26/Nov/2010:20:08:41 -0600] [Job 332] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [26/Nov/2010:20:08:41 -0600] [Job 332] Unable to connect to CIFS host, will retry in 60 seconds...
I [26/Nov/2010:20:09:39 -0600] cupsdCloseClient: SSL shutdown successful!
E [26/Nov/2010:20:09:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:09:41 -0600] [Job 332] No ticket cache found for userid=501
E [26/Nov/2010:20:09:41 -0600] [Job 332] Can not get the ticket cache for administrador
E [26/Nov/2010:20:09:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:09:41 -0600] [Job 332] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [26/Nov/2010:20:09:41 -0600] [Job 332] Unable to connect to CIFS host, will retry in 60 seconds...
E [26/Nov/2010:20:10:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:10:41 -0600] [Job 332] No ticket cache found for userid=501
E [26/Nov/2010:20:10:41 -0600] [Job 332] Can not get the ticket cache for administrador
E [26/Nov/2010:20:10:41 -0600] [Job 332] Session setup failed: NT_STATUS_ACCESS_DENIED
E [26/Nov/2010:20:10:41 -0600] [Job 332] Tree connect failed (NT_STATUS_ACCESS_DENIED)
E [26/Nov/2010:20:10:41 -0600] [Job 332] Unable to connect to CIFS host, will retry in 60 seconds...
And this is the smbd.log section:
Code:
[2010/11/26 20:04:49, 1] smbd/service.c:close_cnum(1274)
javier (10.10.100.31) closed connection to service hp1300
[2010/11/26 20:04:49, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 10.10.100.31. Error = Connection reset by peer
[2010/11/26 20:08:10, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual. Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:16, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual. Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:40, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual. Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:40, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual. Error was NT_STATUS_ACCESS_DENIED
[2010/11/26 20:08:40, 1] rpc_client/cli_pipe.c:cli_rpc_pipe_open(2223)
cli_rpc_pipe_open: cli_nt_create failed on pipe \spoolss to machine vistaVirtual. Error was NT_STATUS_ACCESS_DENIED
:%
It seems that samba can´t login to the windows machine.
I tried to login by hand using smbclient:
Code:
[root@bdd cups]# smbclient -U administrador -L 10.10.100.47 -d4
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = CIO
doing parameter load printers = yes
doing parameter printcap name = cups
doing parameter printing = cups
pm_process() returned Yes
added interface ip=10.10.100.30 bcast=10.10.100.255 nmask=255.255.255.0
Client started (version 3.0.33-3.29.el5_5.1).
Connecting to 10.10.100.47 at port 445
session request ok
Password:
Doing spnego session setup (blob length=336)
SPNEGO login failed: Invalid parameter
session setup failed: SUCCESS - 0
Thanks in advance for your kind help.