smbc_open error

Rechtien, Elizabeth J Elizabeth.Rechtien at
Mon Jun 21 10:25:36 MDT 2010

I'm still having this issue. I think I need to re-phrase my question. I know how to run this command command line but the tcpdump needs to be run within my C code when the smbc_open is called.  Does that work with what you have below?


From: Rechtien, Elizabeth J
Sent: Tuesday, March 30, 2010 9:29 AM
To: 'Derrell Lipman'
Cc: samba-technical at
Subject: RE: smbc_open error

How do you run this command line?

/usr/local/samba/bin/smbclient //xx.xx.x.x/XXX -U tok>
params.c:OpenConfFile() - Unable to open configuration file "0":
        No such file or directory
/usr/local/samba/bin/smbclient: Can't load 0 - run testparm to debug it
session setup failed: NT_STATUS_LOGON_FAILURE

Thanks for your help!
From: derrell.lipman at [mailto:derrell.lipman at] On Behalf Of Derrell Lipman
Sent: Thursday, March 25, 2010 8:30 PM
To: Rechtien, Elizabeth J
Cc: samba-technical at
Subject: Re: smbc_open error

On Thu, Mar 25, 2010 at 16:07, Rechtien, Elizabeth J <Elizabeth.Rechtien at<mailto:Elizabeth.Rechtien at>> wrote:
Does anyone have information on getting an error when calling smbc_open? A file or directory in the path name does not exist. This same file can be pulled from the same server using command line samba commands. This code using libsmbclient.h has worked fine but now seems to be having an issue with a Windows 2008 server.--

Please describe this problem in a new bug report in bugzilla. To the bug report, attach two packet traces: one which shows the command working, using the command line tools to copy the file; and one which fails, using your libsmbclient application. The packet traces should be created with a command line like this:

  tcpdump -s 0 -w outputFileName



"There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies."

                                               C.A.R Hoare
DISCLAIMER:  The contents of this e-mail, including any attachments, contain information which may be confidential, legally privileged, proprietary in nature, or otherwise protected by law from disclosure, and is solely for the use of the intended recipient(s). If you are not the intended recipient, any use, disclosure or copying of this e-mail, including any attachments, is unauthorized and strictly prohibited. If you have received this e-mail in error, please notify us via return e-mail and immediately delete all copies of it from your system. Any opinions either expressed or implied in this e-mail and all attachments, are those of its author only, and do not necessarily reflect those of St. Luke's Hospital.

More information about the samba-technical mailing list