Linux SMB to \domainname ends up "tree connect failed: NT_STATUS_DUPLICATE_NAME "

Server Fault Asked by Mark on September 23, 2020


From CentOS7 machine:

smbclient -L --user=%username%


tree connect failed: NT_STATUS_DUPLICATE_NAME

This is especially when I try to connect to //, which would end up being like // or //

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.

2 Answers

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:

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

Add your own answers!

Related Questions

How to choose best EC2 instance for the system

3  Asked on January 1, 2021 by user14108508


Equivalent of Firebase with PostGreSQL?

0  Asked on December 31, 2020 by dimitri-l


Sticky TCP sessions with IOT sensors

0  Asked on December 31, 2020 by quade


Failed to using powershell to get cookies

1  Asked on December 30, 2020 by pansal


Heroku.yml is not getting bash script

0  Asked on December 29, 2020 by shahrear-bin-amin


D-Link DGS-1210-28 factory reset

0  Asked on December 27, 2020 by andrey-salnikov


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP