Bug 10501 - Setting modification time do not follow referral in case of DFS junction
Setting modification time do not follow referral in case of DFS junction
Status: NEW
Product: Samba 3.6
Classification: Unclassified
Component: libsmbclient
3.6.3
All All
: P5 normal
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-18 08:30 UTC by hargagan
Modified: 2014-03-18 08:30 UTC (History)
0 users

See Also:


Attachments
Patch to fix the SMBC_utimes() issue for files on AD DFS referral (2.83 KB, patch)
2014-03-18 08:30 UTC, hargagan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description hargagan 2014-03-18 08:30:27 UTC
Created attachment 9786 [details]
Patch to fix the SMBC_utimes() issue for files on AD DFS referral

In a Active directory DFS name space setup, where the name space folder points to a remote target. When I use libsmbclient to set the modification time on a file, it fails to set the time. 


After investigating, found that it is not following referral and reaching out to the file on the target. I did some change in libsmbclient library (please see the patch attached), where I call cli_resolve_path() to get the targetpath and targetcli (connection handle). Using that when I do the set_path_info_basic call, it works fine.

Please see review the change.