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.