View Issue Details

IDProjectCategoryView StatusLast Update
0014927CentOS-7cifs-utilspublic2019-06-11 20:02
Reporterufomen 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version7.4.1708 
Target VersionFixed in Version 
Summary0014927: CIFS VFS: BAD_NETWORK_NAME problem when connect to Windows DFS share.
DescriptionHello!
We get an error when we try mount DFS share:
# uname -a
Linux host.domain.com 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# mount -t cifs //domaindfs.com/fs/Collaboration/folder /mnt -o username=user,domain=domaindfs.com,password=passwd,vers=3.0,iocharset=utf8 --verbose
mount.cifs kernel mount options: ip=10.31.14.12,unc=\\nspk.ru\fs,vers=3.0,iocharset=utf8,user=Infodiode,domain=nspk.ru,prefixpath=Collaboration/MON_OTD,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[795408.848372] CIFS VFS: cifs_mount failed w/return code = -2
[795429.985660] CIFS VFS: BAD_NETWORK_NAME: \\domaindfs.com\fs
[795429.987223] CIFS VFS: cifs_mount failed w/return code = -2
[795442.437632] CIFS VFS: BAD_NETWORK_NAME: \\domaindfs.com\fs

vers=1.0 turned off on windows by security reasons. Other versions do not works with DFS share.
Steps To Reproduce3.10.0-693.21.1.el7.x86_64
CentOS Linux release 7.4.1708 (Core)

Mount windows DFS share with CIFS version >1.0 # mount -t cifs ...

Additional InformationLinks:
https://bugzilla.samba.org/show_bug.cgi?id=12917
https://www.spinics.net/lists/linux-cifs/msg13825.html
https://www.spinics.net/lists/linux-cifs/msg12477.html
Tags3.10.0-693.21.1.el7.x86_64, cifs, dfs
abrt_hash
URL

Activities

mhale

mhale

2019-06-11 18:38

reporter   ~0034636

Verified on: 3.10.0-957.21.2.el7.x86_64

$sudo mount.cifs //domain.com/share /mnt/test/ -o username=user,vers=3.0

dmesg output with cifs debug enabled:
[13167.785271] Status code returned 0xc0000016 STATUS_MORE_PROCESSING_REQUIRED
[13167.796208] Status code returned 0xc00000cc STATUS_BAD_NETWORK_NAME
[13167.796222] CIFS VFS: BAD_NETWORK_NAME: \\domain.com\share
[13167.798330] Status code returned 0xc0000016 STATUS_MORE_PROCESSING_REQUIRED

Mount completes successfully though. It looks like ufomen may be attempting to use a folder path instead of the SMB share name

Issue History

Date Modified Username Field Change
2018-06-09 08:47 ufomen New Issue
2018-06-09 08:47 ufomen Tag Attached: 3.10.0-693.21.1.el7.x86_64
2018-06-09 08:47 ufomen Tag Attached: cifs
2018-06-09 08:47 ufomen Tag Attached: dfs
2019-06-11 18:38 mhale Note Added: 0034636