[Samba] missing msdfs referrals from samba directory listing: wrong order in smbd_dirptr_get_entry()?

Michael Tokarev mjt at tls.msk.ru
Fri Jun 7 04:16:06 UTC 2024

06.06.2024 19:33, Michael Tokarev via samba wrote:

> For quite some time I'm trying to find what's going on with MSDFS referrals.
> Samba version is 4.19.6.
> However, when opening the directory in question from client, this name is not
> shown in the listing.  Samba skips this name from the listing when looping over
> readdir entries:

So, the same config just works in samba-4.20.  There has been a quite few changes in
this area in 4.20, but the order of checks in smbd_dirptr_get_entry() didn't actually
change (but the code is different), -- looks like the change happened in smbd_dirptr_get_entry

msdfs is broken in 4.19.  It worked fine in 4.18.

Is no one using msdfs?  I wonder why I was the first to discover this?


GPG Key transition (from rsa2048 to rsa4096) since 2024-04-24.
New key: rsa4096/61AD3D98ECDF2C8E  9D8B E14E 3F2A 9DD7 9199  28F1 61AD 3D98 ECDF 2C8E
Old key: rsa2048/457CE0A0804465C5  6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
Transition statement: http://www.corpit.ru/mjt/gpg-transition-2024.txt

More information about the samba mailing list