libsmbclient and IP numbers

Richard Sharpe sharpe at
Fri Nov 16 03:46:22 GMT 2001

David Vest wrote:

>>>>>smbc_opendir("smb://<insert IP here>/); it fails! Is this not
> supported?
>>>>It works perfectly here (cvs version from before the weekend). What
>>>version are
>>>>you using ?
>>>I've tried checking out SAMBA_2_2 and HEAD, compiled with configure;
> make
>>>copied it to /usr/lib along with libsmbclient.h to /usr/include. Then I
> run
>>>ldconfig. But it still don't work!
>>>int main(int argc, char *argv[])
>>>  char* url = "smb://";
>>>  int nDirEnt;
>>>  err =  smbc_init(auth_fn,  10);
>>>  nDirEnt = smbc_opendir(url);
>>>  printf("%d",nDirEnt);

What sort of error are you getting?

There is definitely a bug in libsmbclient to do with changing the 
workgroup from the default specified in your ~/.smb/smb.conf ...

I am working on it now.

Richard Sharpe, rsharpe at, LPIC-1,, SAMS Teach Yourself Samba
in 24 Hours, Special Edition, Using Samba

More information about the samba-technical mailing list