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 =---