libsmbclient and IP numbers
Richard Sharpe
sharpe at ns.aus.com
Thu Nov 15 13:13:03 GMT 2001
I will try to have a look at this later today.
In the meantime, it would be helpful if we could have a trace of what is
going on.
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
>
>>>libsmbclient
>>>copied it to /usr/lib along with libsmbclient.h to /usr/include. Then I
>>>
> run
>
>>>ldconfig. But it still don't work!
>>>
>>><CODE>
>>>int main(int argc, char *argv[])
>>>{
>>> char* url = "smb://130.236.226.13/";
>>> int nDirEnt;
>>>
>>> err = smbc_init(auth_fn, 10);
>>> nDirEnt = smbc_opendir(url);
>>> printf("%d",nDirEnt);
>>>}
>>></CODE>
>>>
>>My guess is that the IP will work against a Samba box, but not against
>>NT. Can you verify. With NT, you need a name for the NetBIOS session
>>request. smbd doesn't actually require this.
>>
>>
> I have tested connecting with IP against both win2k and samba (samba the
> most) and I get the same result, failure.
>
> /David
>
>
>
--
Richard Sharpe, rsharpe at ns.aus.com, LPIC-1
www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba
in 24 Hours, Special Edition, Using Samba
More information about the samba-technical
mailing list