[RFC] To make libsmbclient work for DFS shares for samba3
boyang
boyang at suse.de
Tue Feb 17 04:48:49 MST 2009
Jeremy Allison wrote:
> On Mon, Feb 16, 2009 at 10:21:56PM +0800, boyang wrote:
>
>> Hi, everyone:
>> Does it make sense to make libsmbclient work for DFS shares? At
>> present, it works only if DFS target can be accessed anynmously. We
>> should invoke smbc_set_credentials() or cli_set_cm_credentials() before
>> the function cli_resolve_path() to set the correct credentials to make
>> DFS share work with libsmbclient. Please correct me if I am wrong.
>>
>
> I thought it was already using the cached credentials
> to connect to other dfs servers ?
>
>
>> If it makes sense, I can take this. :-)
>>
>
> If it's not working, I'd like to know :-).
>
No, It is not working if the DFS target cannot be accessed anonymously.
Also keep derrell in the loop. :-)
Derrell & Jeremy:
Here is the patch for master, pls review it. If it is OK, I'll
backport it to 3-[023]. Thanks!
I have done some tests using code under directory
examples/libsmbclient/. Before the patch, DFS works with libsmbclient
only when DFS target can be accessed anonymously. After the change, it
works fine for me. :-)
BTW: the Makefile under examples/libsmbclient seems broken,
missing some libraries. I can toggle it to build, __BUT__ I am really
not sure which ones are missed. :-)
> Jeremy.
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsmbclient-dfs-master.diff
Type: text/x-patch
Size: 19051 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090217/53362533/libsmbclient-dfs-master-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boyang.vcf
Type: text/x-vcard
Size: 187 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090217/53362533/boyang-0001.vcf
More information about the samba-technical
mailing list