Advertisements

Tag Archives: smbclient

smbclient receiving error message: protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED

I have a Red Hat Enterprise Linux 7.5 server that is not connecting to a Windows share

root@linux:~ # cat /etc/*release
NAME=”Red Hat Enterprise Linux Server”
VERSION=”7.5 (Maipo)”
ID=”rhel”
ID_LIKE=”fedora”
VARIANT=”Server”
VARIANT_ID=”server”
VERSION_ID=”7.5″
PRETTY_NAME=”Red Hat Enterprise Linux”
ANSI_COLOR=”0;31″
CPE_NAME=”cpe:/o:redhat:enterprise_linux:7.5:GA:server”
HOME_URL=”https://www.redhat.com/”
BUG_REPORT_URL=”https://bugzilla.redhat.com/”

REDHAT_BUGZILLA_PRODUCT=”Red Hat Enterprise Linux 7″
REDHAT_BUGZILLA_PRODUCT_VERSION=7.5
REDHAT_SUPPORT_PRODUCT=”Red Hat Enterprise Linux”
REDHAT_SUPPORT_PRODUCT_VERSION=”7.5″
Red Hat Enterprise Linux Server release 7.5 (Maipo)
Red Hat Enterprise Linux Server release 7.5 (Maipo)

samba rebased to version 4.6.2

To improve security, the NT LAN manager version 1 (NTLMv1) protocol is now disabled by default. If you require the insecure NTLMv1 protocol, set the ntlm auth parameter in the /etc/samba/smb.conf file to yes.

The storage was upgraded so my RHEL 7.5 server is the client trying to connect to the Windows share. It is showing the message protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED

root@linux:~ # smbclient //storageserver/PUBLICO -U “setaoffice/username%PASSWORD” -c ‘prompt; cd CC_EFC_Inbound/Logs; mget *.log’
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED

To solve the problem, I had to add -m SMB2 or -m SMB3 to the smbclient

root@linux:~ # smbclient //storageserver/PUBLICO -U “setaoffice/username%PASSWORD” -m SMB2 -c ‘prompt; cd CC_EFC_Inbound/Logs; mget *.log’
Kinit for username@SETAOFFICE to access storageserver failed: Cannot find KDC for requested realm
session setup failed: NT_STATUS_WRONG_PASSWORD

Advertisements
%d bloggers like this: