![ntlmssp_handle_neg_flags:获得挑战标志 [0x60898205] - 检测到可能降级!missing_flags[0x00000010] - NT 代码 0x80090302](https://linux22.com/image/683441/ntlmssp_handle_neg_flags%EF%BC%9A%E8%8E%B7%E5%BE%97%E6%8C%91%E6%88%98%E6%A0%87%E5%BF%97%20%5B0x60898205%5D%20-%20%E6%A3%80%E6%B5%8B%E5%88%B0%E5%8F%AF%E8%83%BD%E9%99%8D%E7%BA%A7%EF%BC%81missing_flags%5B0x00000010%5D%20-%20NT%20%E4%BB%A3%E7%A0%81%200x80090302.png)
我正在尝试访问 NetApp 上的 SMB/CIFS 资源,使用以下命令并出现错误:
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
$ rpm -qa | grep ^samba-
samba-client-4.2.10-6.el7_2.x86_64
samba-libs-4.2.10-6.el7_2.x86_64
samba-common-libs-4.2.10-6.el7_2.x86_64
samba-common-4.2.10-6.el7_2.noarch
samba-client-libs-4.2.10-6.el7_2.x86_64
samba-common-tools-4.2.10-6.el7_2.x86_64
$ smbclient //X/Y$ -U DOMAIN/user -L
Enter DOMAIN/user's password:
ntlmssp_handle_neg_flags: Got challenge flags[0x60898205] - possible downgrade detected! missing_flags[0x00000010] - NT code 0x80090302
NTLMSSP_NEGOTIATE_SIGN
SPNEGO(ntlmssp) login failed: NT code 0x80090302
session setup failed: NT code 0x80090302
$
我正在尝试使用以下内容smbclient
:
--选项==
Set the smb.conf(5) option "<name>" to value "<value>" from the command line. This overrides compiled-in defaults and options read from the configuration file.
但是,我仍然无法访问服务器上的资源,因为我做错了:
$ smbclient //X/Y$ -U DOMAIN/user -L --option='client ntlmv2 auth'=no
Enter DOMAIN/user's password:
Connection to --option=client ntlmv2 auth=no failed (Error NT_STATUS_UNSUCCESSFUL)
$
设置client ntlmv2 auth=no
via 的--option
正确方法是什么smbclient
?
答案1
您可能希望在 ntlmssp 中禁用 spnego,并使用默认参数:
# smbclient -L //MY_SERVER -U MY_USER Enter MY_USER's password: ntlmssp_handle_neg_flags: Got challenge flags[0x60898205] - possible downgrade detected! missing_flags[0x00000010] - NT code 0x80090302 NTLMSSP_NEGOTIATE_SIGN
禁用 spnego 后:
# smbclient -L //MY_SERVER -U MY_USER --option='client use spnego=no'
对我有用。