AnswerBun.com

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

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.

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: 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

Add your own answers!

Related Questions

Is aws-iam-authenticator still needed with EKS?

1  Asked on December 22, 2020 by giovanni-tirloni

   

I can’t start connection with WebSockets in EC2

0  Asked on December 21, 2020 by paula-silva

       

How can I install nspr 4.25 on CentOS 7?

1  Asked on December 18, 2020 by drteeth

     

Postfix Rewrite domain only after transport process

0  Asked on December 16, 2020 by nerigal

 

How to debug CGI over fcgiwrap/nginx

1  Asked on December 16, 2020 by googlebot

       

Limit access on Apache 2.4 to ldap group

1  Asked on December 15, 2020 by jakobbg

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir