Bug 15794 - opening a msdfs path on linux clients fails. "could not resolve \linkname"
Summary: opening a msdfs path on linux clients fails. "could not resolve \linkname"
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 4.21.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-30 18:19 UTC by Oliver.Szczech
Modified: 2025-01-30 18:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver.Szczech 2025-01-30 18:19:05 UTC
SUMMARY
Opening a "SMB msdfs path" fails on linux desktop clients that use libsmbclient.

STEPS TO REPRODUCE
1. For example open dolphin/nautilus
2. open a msdfs path: "smb://server.example/sharename/msdfs_link"

OBSERVED RESULT
KDE: Instantly opens an empty folder, displays in the middle "No shared folder found"
Gnome: "oops, something went wrong"
stat/smbc_readdir: "session setup failed: NT_STATUS_LOGON_FAILURE
Couldn't resolve \linkname"


EXPECTED RESULT
It should show me the contents of the msdfs link target directory.


Example server setup:

in the smb.conf
[group]
    path = /srv/fsdb/dfsgroup
    msdfs root = yes

then simply a symlink has to be crated within the path:
ln -s msdfs:server.example\\sharename linkname


Please see link below for an example program directly using libsmbclient
https://bugs.kde.org/show_bug.cgi?id=499259#c1