smbclient 3.2.3 cannot show file ACLs on DFS-link. $ smbclient -V Version 3.2.3 $ smbclient //windows2003/dfs-root Enter username's password: Dmain=[EXAMPLE] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2] smb: \> showacls smb: \> cd dfs-link Command "ls" shows NT_STATUS_PATH_NOT_COVERED error: smb: \dfs-link\> ls FILENAME:\dfs-link\\file.txt MODE:A SIZE:0 MTIME:Mon Oct 16 15:41:49 2006 display_finfo() Failed to open \dfs-test\\1: NT_STATUS_PATH_NOT_COVERED 40931 blocks of size 524288. 32150 blocks available Command "ls file.txt" shows NT_STATUS_OBJECT_PATH_NOT_FOUND error: smb: \dfs-link\> ls file.txt FILENAME:\dfs-link\\file.txt MODE: SIZE:2868 MTIME:Wed Sep 6 20:58:32 2006 display_finfo() Failed to open \dfs-link\\file.txt: NT_STATUS_OBJECT_PATH_NOT_FOUND 40931 blocks of size 524288. 32150 blocks available Command "get file.txt" is OK: smb: \dfs-link\> get file.txt getting file \dfs-link\file.txt of size 2868 as file.txt (16.3 kb/s) (average 14.8 kb/s)
This problem is reproduceable by libsmbclient (smbc_getxattr()) too.
Created attachment 3568 [details] Patch Patch for 3.2.4
Created attachment 3569 [details] Patch including libsmbclient fix. Fix including code changes for libsmbclient ACL get/set over DFS. Please test before 9/19/08. Thanks ! Jeremy.
Hmmm. Actually the libsmbclient code won't work until libsmbclient has the smbc_set_credentials() call added to it (scheduled for 3.3). Jeremy.
Created attachment 3570 [details] Patch for libsmbclient 3.0.31 I've confirmed this bug was gone on smbclient/libsmbclient 3.2.3 with your patch and libsmbclient 3.0.31 with an attached backport patch. Can I use the backport (from Samba 3.2 (GPLv3)) patch for Samba 3.0.31 (GPLv2)? (Or can you commit tha patch to v3-0-* tree?) Thank you. (In reply to comment #4) > Hmmm. Actually the libsmbclient code won't work until libsmbclient has the > smbc_set_credentials() call added to it (scheduled for 3.3). Yes, I know that. :-) I found the bug #5580 and use the attached patch on Samba 3.0.31.
Pushed into the 3.0.x tree, thanks ! Jeremy.
Closing out bug report. Thank you very much!