LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cups cant connect to printer on XP (https://www.linuxquestions.org/questions/linux-software-2/cups-cant-connect-to-printer-on-xp-252229/)

david.skinner 11-07-2004 07:49 PM

Cups cant connect to printer on XP
 
I cann't get my cups server to talk to my windows XP Printers. Sincen last using them I have upgraded cups, samba, and XP SP2. but this seems a deep problem.

I have turned off the XP soft firewalls. The interesting thing is that I can manually connect to the printer shares using either smbclient and smbspool. These commands work as follows:

The SMBClient is:
Code:

[root@server cups]# smbclient //kates/HP_Colour -W skinner.co.nz -U user%pw -d 3 -c "put /root/test"
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface ip=192.168.0.100 bcast=192.168.0.255 nmask=255.255.255.0
Client started (version 3.0.6).
Connecting to 192.168.0.105 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x62890215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
Domain=[SKINNER.CO.NZ] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
dos_clean_name [\\/root/test]
putting file /root/test as \/root/test (4.9 kb/s) (average 4.9 kb/s)

Likewise the SMBspool works as follows
Code:

smbspool smb://user:pw@skinner.co.nz/kates/HP_Colour "92" "root" "" "1" "" /etc/passwd
My cups printer definition is
Code:

# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Sun 07 Nov 2004 18:11:56 NZDT
<DefaultPrinter HPT>
Info HP PSC 2400 Foomatic/hpijs (recommended)
Location Kates Office
DeviceURI smb://user:pw@skinner.co.nz/kates/HP_Colour
State idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

Which results in the following debug error_log messages from cups when I try to print
Code:

D [08/Nov/2004:14:32:45 +1300] StartJob: argv = "HPT","93","root","passwd","1","page-top=36 page-bottom=36 page-left=36 page-right=36 cpi=12 lpi=7 wrap scaling=100","/var/spool/cups/d00093-001"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[2]="USER=root"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[3]="CHARSET=iso-8859-15"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[4]="LANG=en"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[5]="PPD=/etc/cups/ppd/HPT.ppd"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[9]="CONTENT_TYPE=text/plain"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[10]="DEVICE_URI=smb://skinner.co.nz/kates/HP_Colour"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[11]="PRINTER=HPT"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[14]="CUPS_SERVER=localhost"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[15]="IPP_PORT=631"
D [08/Nov/2004:14:32:45 +1300] StartJob: envp[16]="NLSPATH=/usr/share/locale/%l/%N"
D [08/Nov/2004:14:32:45 +1300] StartJob: statusfds = [ 7 8 ]
D [08/Nov/2004:14:32:45 +1300] StartJob: filterfds[1] = [ 9 -1 ]
D [08/Nov/2004:14:32:45 +1300] StartJob: backend = "/usr/lib/cups/backend/smb"
D [08/Nov/2004:14:32:45 +1300] StartJob: filterfds[0] = [ -1 10 ]
D [08/Nov/2004:14:32:45 +1300] start_process("/usr/lib/cups/backend/smb", 0xbffefd00, 0xbffef070, 9, 10, 8)
I [08/Nov/2004:14:32:45 +1300] Started backend /usr/lib/cups/backend/smb (PID 9629) for job 93.
D [08/Nov/2004:14:32:45 +1300] ProcessIPPRequest: 5 status_code=0
D [08/Nov/2004:14:32:45 +1300] CloseClient() 5
E [08/Nov/2004:14:32:45 +1300] [Job 93] NT_STATUS_ACCESS_DENIED opening remote file passwd
D [08/Nov/2004:14:32:45 +1300] UpdateJob: job 93, file 0 is complete.
D [08/Nov/2004:14:32:45 +1300] CancelJob: id = 93
D [08/Nov/2004:14:32:45 +1300] StopJob: id = 93, force = 0
D [08/Nov/2004:14:32:45 +1300] StopJob: printer state is 3
E [08/Nov/2004:14:32:45 +1300] PID 9629 stopped with status 1!

Sorry about the long dumps but this one has me stumped. It would appear that the cups messaging is getting blocked but I can get through manually with the same access parameters. Any guidence or thoughts appreciated.
David

david.skinner 11-25-2004 01:41 AM

Further investigation gets even stranger...

Using the app /usr/bin/smbspool3 I can dump a file straight to the smb printer proving to me that the problem is not on the windows end. However when cups calls this utility it returns an error message saying can't connect. Whats even stranger is that having turned on login logging on the windows machine it does not see the attempted connection. So I'm guessing that smbspool3 is being passed incorrect parameters. Any views on where to go from here would be appreciated.
D.


All times are GMT -5. The time now is 04:13 PM.