Server Fault Asked by Mark on September 23, 2020
Issue:
From CentOS7 machine:
smbclient -L %domainname%.com --user=%username%
Result:
tree connect failed: NT_STATUS_DUPLICATE_NAME
This is especially when I try to connect to //domainname.com
, which would end up being like //domainname.com/sysvol
or //domainname.com/netlogon
.
Overall the end goal is to connect to a DFS share that lives off the domainname.
Attemps and results:
smbclient -L %Aservername% --user=%username%
= Works fine
smbclient -L %IPaddress(of any server or DC)% --user=%username%
= Works fine
smbclient -L %domainname% --user=%username%
= DuplicateName prompt
I’ve tried adding a CNAME
in Windows DNS like %TestName%
to %domainname%
, but it still comes up with duplicate name.
In CentOS /etc/hosts
I’ve mapped %domainname%
to %testname%
, but it still comes up with duplicate name.
In CentOS /etc/hosts
I’ve mapped IP of DC1 to %testname%
In CentOS /etc/hosts
I’ve mapped IP of DC2 to %testname%
In CentOS /etc/hosts
I’ve mapped IP of DC3 to %testname%
, but it still comes up with duplicate name.
* Firewall has been turned off for this testing.
Any help would be appreciated. I’ve spent many hours now trying to sort this out.
According to my notes for a CentOS 7 system trying to access DFS shares, you need to include these lines (at the bottom is fine) in /etc/request-key.conf
. They are not in the default.
create cifs.spnego * * /usr/sbin/cifs.upcall -c %k
create dns_resolver * * /usr/sbin/cifs.upcall %k
That was for a regular mount command, but maybe it applies here. The file referred to comes from base package cifs-utils.
My notes point to this site: http://mikemstech.blogspot.com/2012/10/how-to-mount-dfs-share-in-linux.html
Answered by bgStack15 on September 23, 2020
As a workaround, you can use your domain controller's name instead of domain name. The downside is, you won't be able to access the share while this domain controller is down. But it should rarely happen anyway.
Answered by Mer on September 23, 2020
1 Asked on December 22, 2020 by giovanni-tirloni
1 Asked on December 21, 2020 by user594268
1 Asked on December 21, 2020 by hazaki
0 Asked on December 21, 2020 by paula-silva
0 Asked on December 21, 2020 by soupdiver
1 Asked on December 20, 2020 by sam1975
1 Asked on December 20, 2020 by anon-ymous
1 Asked on December 20, 2020 by matthieu-napoli
1 Asked on December 20, 2020 by rosengrenen
0 Asked on December 20, 2020 by manifestor
debian hypervisor kvm virtualization virtual machines virtualization
2 Asked on December 18, 2020 by estege
1 Asked on December 18, 2020 by drteeth
1 Asked on December 18, 2020 by richb
1 Asked on December 17, 2020 by chobo2
0 Asked on December 17, 2020 by geofflittle
amazon ec2 amazon vpc amazon web services ip address networking
2 Asked on December 17, 2020 by numemiie
1 Asked on December 16, 2020 by googlebot
1 Asked on December 15, 2020 by manny0606
1 Asked on December 15, 2020 by jakobbg
Get help from others!
Recent Questions
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir