NetApp access denied
<[email protected]> Thu, 17 Dec 2015 17:23:28 +0000
| Newsgroups | gmane.network.samba.java |
|---|---|
| Message-ID | <[email protected]> |
--_000_6021994cb1904d1896db6af7d4417881AUSX13MPC107AMERDELLCOM_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Dell - Internal Use - Confidential
Using NetApp Release 8.3RC1
Running the jcifs 1.3.18 example code SmbShell to browse a NetApp cifs shar=
e, I receive 'Access denied'.
The cifs share has packet signing enabled.
I have debugged this to line ~150 of NtlmContext.java in jcifs source, whic=
h is:
ntlmsspFlags &=3D msg2.getFlags();
If I comment out this line, then browsing works. That is because:
ntlmsspFlags=3D0x60088014
and,
ms2.getFlags() returns: 0x60088004
So the bitwise & turns off the 0x00000010 flag which is (NtlmFlags.java)
public static final int NTLMSSP_NEGOTIATE_SIGN =3D 0x00000010;
So, for some reason the NetApp seems to be disabling packet signing during =
the negotiation.
This may be a bug in NetApp. On the other hand, perhaps it is a
configuration problem or a misunderstanding of the protocol that someone al=
ready knows about.
Any information appreciated,
Russell
--_000_6021994cb1904d1896db6af7d4417881AUSX13MPC107AMERDELLCOM_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p><b><span style=3D"font-size:9.0pt;font-family:"Trebuchet MS",s=
ans-serif;color:#AAAAAA">Dell - Internal Use - Confidential
</span></b><o:p></o:p></p>
<p class=3D"MsoPlainText">Using NetApp Release 8.3RC1 <o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">Running the jcifs 1.3.18 example code SmbShell to=
browse a NetApp cifs share, I receive 'Access denied'.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">The cifs share has packet signing enabled.<o:p></=
o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">I have debugged this to line ~150 of NtlmContext.=
java in jcifs source, which is:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">ntlmsspFlags &=3D msg2.getFlags();<o:p></o:p>=
</p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">If I comment out this line, then browsing works.&=
nbsp; That is because:<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">ntlmsspFlags=3D0x60088014<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">and,<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">ms2.getFlags() returns: 0x60088004<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">So the bitwise & turns off the 0x00000010 fla=
g which is (NtlmFlags.java)<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">public static final int NTLMSSP_NEGOTIATE_SIGN =
=3D 0x00000010;<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">So, for some reason the NetApp seems to be disabl=
ing packet signing during the negotiation.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">This may be a bug in NetApp. On the o=
ther hand, perhaps it is a
<o:p></o:p></p>
<p class=3D"MsoPlainText">configuration problem or a misunderstanding of th=
e protocol that someone already knows about.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p> </o:p></p>
<p class=3D"MsoPlainText">Any information appreciated,<o:p></o:p></p>
<p class=3D"MsoPlainText">Russell<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_6021994cb1904d1896db6af7d4417881AUSX13MPC107AMERDELLCOM_--