Hi,
I have a Windows 7 64bit computer with a HP1200 printer attached via USB. The printer is set to shared and I have been attempting to configure it on my Unixware 7.1.4 server. No matter what I do I get the message "session setup failed: NT_STATUS_OK"
On the Windows 7 computer
- I have turned on file and printer sharing, turned off password protected sharing (In advanced sharing settings).
- In Local Security Policies I have set the following...
Microsoft Network Client: Send Unencrypted Password to third party... - Enabled
Network Security: LAN Manager authentication level - Sent LM & NTLM - use NTLMv2 session....
Network Security: Minimum Session Security for NTLM...client - No Minimum
Network Security: Minimum Session Security for NTLM...server - No Minimum
- In Windows Features I have enabled "LPD Print Service" and "LPR Port Monitor" under the "Print and Document Services" folder.
- I have created a windows firewall rule that allowed all traffic between the Windows 7 PC and the Unixware server.
- I have disabled the windows firewall altogether.
- I have enabled the Administrator account and shared the printer from there.
On the server I have
- Attempted to connect to the Win7 PC through the hosts file ID, computer name, and the IP address
- Attempted to connect using the Administrator account on the Win7 PC.
- Attempted to connect using a guest account.
I have also run the following debug...
# smbclient -d 7 //[computer IP]/hp1200 -U [user]%[password]
INFO: Current debug levels:
all: True/77
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/usr/lib/samba/lib/smb.conf"
Processing section "[global]"
doing parameter workgroup = LTL
doing parameter server string = wescan350 Samba Server
doing parameter encrypt passwords = No
doing parameter log file = /usr/local/samba/var/log.%m
doing parameter max log size = 50
doing parameter use spnego = No
doing parameter printcap name = lpstat
doing parameter preferred master = Yes
doing parameter domain master = Yes
doing parameter dns proxy = No
doing parameter wins support = Yes
doing parameter ldap ssl = no
doing parameter printing = sysv
doing parameter print command = lp -c -d%p %s; rm %s
doing parameter lpq command = lpstat -o%p
doing parameter lprm command = cancel %p-%j
doing parameter lppause command = lp -i %p-%j -H hold
doing parameter lpresume command = lp -i %p-%j -H resume
doing parameter queuepause command = disable %p
doing parameter queueresume command = enable %p
doing parameter case sensitive = No
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_STANDALONE
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
added interface ip=89.1.1.1 bcast=89.1.1.255 nmask=255.255.255.0
Netbios name list:-
my_netbios_names[0]="WESCAN350"
Client started (version 3.0.10).
Connecting to 89.1.1.133 at port 445
timeout connecting to 89.1.1.133:445
Connecting to 89.1.1.133 at port 139
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_REUSEPORT = 0
socket option SO_SNDBUF = 8192
socket option SO_RCVBUF = 8192
socket option SO_SNDLOWAT = 0
socket option SO_RCVLOWAT = 0
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
write_socket(3,72)
write_socket(3,72) wrote 72
Sent session request
got smb length of 1
size=1
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
lang_tdb_init: /usr/lib/samba/lib/C.msg: No such file or directory
session request to 89.1.1.133 failed (Called name not present)
Connecting to 89.1.1.133 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_REUSEPORT = 0
socket option SO_SNDBUF = 8192
socket option SO_RCVBUF = 8192
socket option SO_SNDLOWAT = 0
socket option SO_RCVLOWAT = 0
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
session request ok
write_socket(3,183)
write_socket(3,183) wrote 183
got smb length of 127
size=127
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=22784
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]=12803 (0x3203)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 17 (0x11)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64512 (0xFC00)
smb_vwv[10]= 483 (0x1E3)
smb_vwv[11]=34176 (0x8580)
smb_vwv[12]=37662 (0x931E)
smb_vwv[13]=26572 (0x67CC)
smb_vwv[14]=52575 (0xCD5F)
smb_vwv[15]=26625 (0x6801)
smb_vwv[16]= 1 (0x1)
smb_bcc=58
[000] FB 61 4F FF F2 25 A3 4D A6 2B 8C 0E 33 31 6A 82 .aO..%.M .+..31j.
[010] 60 28 06 06 2B 06 01 05 05 02 A0 1E 30 1C A0 1A `(..+... ....0...
[020] 30 18 06 0A 2B 06 01 04 01 82 37 02 02 1E 06 0A 0...+... ..7.....
[030] 2B 06 01 04 01 82 37 02 02 0A +.....7. ..
size=127
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=22784
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]=12803 (0x3203)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 17 (0x11)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64512 (0xFC00)
smb_vwv[10]= 483 (0x1E3)
smb_vwv[11]=34176 (0x8580)
smb_vwv[12]=37662 (0x931E)
smb_vwv[13]=26572 (0x67CC)
smb_vwv[14]=52575 (0xCD5F)
smb_vwv[15]=26625 (0x6801)
smb_vwv[16]= 1 (0x1)
smb_bcc=58
[000] FB 61 4F FF F2 25 A3 4D A6 2B 8C 0E 33 31 6A 82 .aO..%.M .+..31j.
[010] 60 28 06 06 2B 06 01 05 05 02 A0 1E 30 1C A0 1A `(..+... ....0...
[020] 30 18 06 0A 2B 06 01 04 01 82 37 02 02 1E 06 0A 0...+... ..7.....
[030] 2B 06 01 04 01 82 37 02 02 0A +.....7. ..
Serverzone is 21600
Doing spnego session setup (blob length=58)
SPNEGO login failed: Unexpected information received
session setup failed: NT_STATUS_OK
Has anyone experienced a similar problem?
Thanks,
Adam
|
|
0
|
|
|
|
Reply
|
mr.wolfenberg (4)
|
7/11/2012 1:45:44 PM |
|
mr.wolfenberg@gmail.com wrote:
> I have a Windows 7 64bit computer with a HP1200 printer attached via USB. The printer is set to shared and I have been attempting to configure it on my Unixware 7.1.4 server. No matter what I do I get the message "session setup failed: NT_STATUS_OK"
>
> On the Windows 7 computer
> - I have turned on file and printer sharing, turned off password protected sharing (In advanced sharing settings).
> - In Local Security Policies I have set the following...
> Microsoft Network Client: Send Unencrypted Password to third party... - Enabled
> Network Security: LAN Manager authentication level - Sent LM & NTLM - use NTLMv2 session....
> Network Security: Minimum Session Security for NTLM...client - No Minimum
> Network Security: Minimum Session Security for NTLM...server - No Minimum
> - In Windows Features I have enabled "LPD Print Service" and "LPR Port Monitor" under the "Print and Document Services" folder.
> - I have created a windows firewall rule that allowed all traffic between the Windows 7 PC and the Unixware server.
> - I have disabled the windows firewall altogether.
> - I have enabled the Administrator account and shared the printer from there.
Since you enabled "LPD Print Service" and "LPR Port Monitor" on the
Windows host, port 515 should be open.
See if this works:
unixware$ telnet windows_host 515
If not, recheck firewalls on both sides to make sure TCP 515 is allowed
(in on Windows, out on UnixWare). Once that works you can just set up
a remote BSD-style printer on the UnixWare host and skip the samba stuff.
# scoadmin printer
Printer, Add TCP/IP Printer
Name = HP1200
Protocol = lpd (BSD)
Make/Model = HP Laserjet, Postscript, DOS printer...
<*> On Remote Server
Remote System: Windows_IP_here
Remote Printer: raw
Restart lpsched to pick up the new printer definition:
Server, Halt
Server, Start
Make/Model shouldn't matter too much. The UnixWare host will just send
a raw stream of output to the printer. I have an HP LaserJet 3390 on
the network and use Make/Model "DOS printer" and it works. I'm able to
print text and postscript from UnixWare with no problems.
scot
|
|
0
|
|
|
|
Reply
|
sjnospam12 (2)
|
7/19/2012 8:33:24 PM
|
|
On Thursday, 19 July 2012 16:33:24 UTC-4, Scot Jenkins wrote:
> Since you enabled "LPD Print Service" and "LPR Port Monitor" on the
> Windows host, port 515 should be open.
>
> See if this works:
> unixware$ telnet windows_host 515
>
> If not, recheck firewalls on both sides to make sure TCP 515 is allowed
> (in on Windows, out on UnixWare). Once that works you can just set up
> a remote BSD-style printer on the UnixWare host and skip the samba stuff.
>
> # scoadmin printer
> Printer, Add TCP/IP Printer
> Name = HP1200
> Protocol = lpd (BSD)
> Make/Model = HP Laserjet, Postscript, DOS printer...
> <*> On Remote Server
> Remote System: Windows_IP_here
> Remote Printer: raw
>
> Restart lpsched to pick up the new printer definition:
> Server, Halt
> Server, Start
>
> Make/Model shouldn't matter too much. The UnixWare host will just send
> a raw stream of output to the printer. I have an HP LaserJet 3390 on
> the network and use Make/Model "DOS printer" and it works. I'm able to
> print text and postscript from UnixWare with no problems.
>
> scot
Thanks for the reply and I have done what you suggested. I can successfully telnet to the PC through port 515 and I have added the printer to sco. After testing, however, the printjob hangs in the queue showing as 'filtered'. Below is the exact line.
hp1200-1 root 15 Mon Jul 23 12:47:38 MDT 2012 filtered
I have never seen 'filtered' before. Any ideas what this is?
Thanks again,
Adam
|
|
0
|
|
|
|
Reply
|
mr.wolfenberg (4)
|
7/23/2012 7:29:49 PM
|
|
mr.wolfenberg@gmail.com wrote:
>
> Thanks for the reply and I have done what you suggested. I can successfully telnet to the PC through port 515 and I have added the printer to sco. After testing, however, the printjob hangs in the queue showing as 'filtered'. Below is the exact line.
>
> hp1200-1 root 15 Mon Jul 23 12:47:38 MDT 2012 filtered
>
> I have never seen 'filtered' before. Any ideas what this is?
"filtered" is new to me too.
Searching the SCO knowledge base for "lp filtered" turned up these
two TA's which might help. Read 109599 first as it sounds closer to
your situation. You may have a content-type issue where lp is trying
to apply a filter before sending the request to the printer.
http://wdb1.sco.com/kb/showta?taid=105689
http://wdb1.sco.com/kb/showta?taid=109599
Read lp(1) specifically "-T content-type [-r]", where the -r is
critical in that it ensures no filters are used. This is also
mentioned in TA# 109599.
Other things to look at:
1. How are you printing from the UnixWare host?
Using lp from the command line, or from a specific application?
2. What type of content are you trying to print? text, postscript, ...?
3. What "make/model" did you select when setting up the printer on
the UnixWare host?
For printers directly on the network the make/model shouldn't matter.
You would just send raw data directly to the printer without applying
any filters. In your case, you may need to use a different make/model
since the printer you are trying to print to is attached to the Windows
box. We have no idea what the Windows box is expecting. This is where
the filter comes in.
Experiment with different make/models: "HP Laserjet..." and pick
one that is close to your printer, or try "Postscript".
Start with a text only print test:
unixware$ /usr/ucb/lptest | head | lp -dhp1200
With a stuck print request, check for files under:
/var/spool/lp/temp
/var/spool/lp/requests
They might shed light on why it is stuck.
The links for "Advanced printer configuration" on SCO's online version
of the UW7 docs are broken so use the local copy (assumes you have the
"docview" pkg installed) here to decipher those files:
http://localhost:8458/en/PR_advanced/pqueC.reqLog.html
scot
|
|
0
|
|
|
|
Reply
|
sjnospam12 (2)
|
7/24/2012 5:57:41 AM
|
|
Thanks for the info Scot. I will start to dig and see what I uncover. For the time being though, here are the answers to your questions.
> 1. How are you printing from the UnixWare host?
> Using lp from the command line, or from a specific application?
We are using lp from command line
> 2. What type of content are you trying to print? text, postscript, ...?
We print both text and PCL, very rarely postscript.
> 3. What "make/model" did you select when setting up the printer on
> the UnixWare host?
I have tried both 'HP LaserJet (PCL)' and 'HP LaserJet (Postscript)'. Both have the same 'filtered' problem. I will be trying a few more options.
Thanks again,
Adam
|
|
0
|
|
|
|
Reply
|
mr.wolfenberg (4)
|
7/24/2012 1:25:50 PM
|
|
|
4 Replies
125 Views
(page loaded in 0.078 seconds)
|