Networking Forums

Networking Forums > Computer Networking > Linux Networking > smbspool: cli_session_request() failed

Reply
Thread Tools Display Modes

smbspool: cli_session_request() failed

 
 
Steve Quezadas
Guest
Posts: n/a

 
      05-27-2004, 08:23 AM
I am using your smbspool and I seem to be getting an error. When I try to
use your smbspool program but I get the following error whenever I try to
use it:
> root@HomeLinux:/home/steve# smbspool smb://192.168.1.4/LaserPrinter 0 0 0

0 0 README
> ERROR: cli_session_request() failed...
> ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...


This shared printer works perfectly fine using other window clients.
smbclient also works fine with it using the print command. So the error
seems to come with the smbspool program itself. I read the man page on
smbspool and it seems that I am doing everything correctly. I trapped and
traced the error with ddd. It seems that a connection is being made
properly, but the session isn't being made correctly (whatever that is).
> if (!cli_session_request(c, &calling, &called)) <----------- this line

failing
> {
> fputs("ERROR: cli_session_request() failed...\n", stderr);
> cli_shutdown(c);
> return (NULL);
> }


On closer inspection, this function is failing on this line:
> if (CVAL(cli->inbuf,0) != 0x82) { <----- error occuring here
> /* This is the wrong place to put the error... JRA. */
> cli->rap_error = CVAL(cli->inbuf,4);
> return False;
> }


The value for cli->inbuf is 0x80d4f28 "\203". My knowledge on C is a bit
limited (admittedly). I am not sure what CVAL does (not in the man pages). I
am also not sure what "inbuf" is in the cli structure, nor what hex 0x82 or
0x80d4f28 is. What exactly does that hexadecimal value mean?

Anyone know why I can't "establish a session"?

I am using Slackware 9.1 on a 2.4.22 kernel.

- Steve






----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Has my router failed? coyoteboyuk@hotmail.com Linux Networking 17 10-11-2006 12:34 AM
airodump : failed Craig Wireless Internet 2 08-29-2006 09:57 PM
PPP connection failed? kh Linux Networking 1 01-27-2004 01:48 PM
RPC Failed Hot Gal Windows Networking 4 01-20-2004 12:57 PM
Failed Lines bradley Broadband 2 10-12-2003 09:02 PM



1 2 3 4 5 6 7 8 9 10 11