<div dir="ltr"><div style>Hi Uhr,</div><div style><br></div><div style>I'm also sending to the mailing list for posterity (I would CC but gmail is slowly becoming an incomprehensible simplistic POS).</div><div style><br>
</div><div style>I have analyzed your capture.</div><div style><br></div><div style>It seems you are trying to use NetBIOS names and the lookups are failing (unless you specify a WINS server as you have discovered). NetBIOS names are the short one-label hostnames. Do not use NetBIOS names. NetBIOS is virtually all but dead. Even when people use short one-label names they are almost always still using DNS weather they realize it or not because the host resolver is using the builtin domain suffix search feature. But JCIFS does not have the capability to use a domain suffix search. If you use a one-label name, JCIFS will try to do NetBIOS and thus you'll get failure. So you should always use fully qualified DNS hostnames with JCIFS (and all other applications). That might be inconvenient but anything less is simply inaccurate and prone to failure. All real applications should use FQDNs.</div>
<div style><br></div><div style><span style="font-family:Arial,sans-serif;font-size:13px">You should not need to disable NTLMv2. If your NetApp server doesn't support NTLMv2, you really should look into updating it because eventually someone is going to disable NTLMv1.</span><br>
</div><div style><br></div><div style>So take out all of the properties and just try to use a fully qualified DNS hostname in your SMB URL.</div><div style><br></div><div style>Note that your capture also had a bit of other junk in it. If you send me another capture for some reason, it would be better if you could identify the junk and filter out those ports.</div>
<div style><br></div><div style>Mike</div><div><br class="">-- <br>Michael B Allen<br>Java Active Directory Integration<br><a href="http://www.ioplex.com/">http://www.ioplex.com/</a><br></div><div><br></div>On Mon, Jun 3, 2013 at 6:28 AM, Torsten Uhr <span dir="ltr"><<a href="mailto:torsten.uhr@sql-ag.de" target="_blank">torsten.uhr@sql-ag.de</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="DE" link="blue" vlink="purple">
<div><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Michael,<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">attached Your will find two TCP captures. The file ‚with_props.pcap.zip‘ was created using the following jcifs properties:<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.smb.lmCompatibility=2</span><br>
<span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.smb.client.useExtendedSecurity=false</span><br><span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.util.loglevel=3</span><br>
<span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.resolveOrder=DNS</span><br><span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.smb.client.dfs.disabled=true</span><br>
<span style="font-size:10pt;font-family:Arial,sans-serif"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">The file ‚without_props.zip‘ was created using the following jcifs properties:<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.smb.lmCompatibility=2</span><br><span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.smb.client.useExtendedSecurity=false</span><br>
<span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.util.loglevel=3</span><br><span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.resolveOrder=LMHOSTS,WINS,DNS</span><br>
<span style="font-size:10pt;font-family:Arial,sans-serif">export JAVA_OPTS=-Djcifs.smb.client.soTimeout=35000<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)">Surprisingly the following configuration works as fast as expected!!<u></u><u></u></span></p><p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:10pt;font-family:'Courier New'">export JAVA_OPTS=-Djcifs.smb.lmCompatibility=2</span><br><span style="font-size:10pt;font-family:'Courier New'">export JAVA_OPTS=-Djcifs.smb.client.useExtendedSecurity=false</span><br>
<span style="font-size:10pt;font-family:'Courier New'">export JAVA_OPTS=-Djcifs.util.loglevel=3</span><br><span style="font-size:10pt;font-family:'Courier New'">export JAVA_OPTS=-Djcifs.netbios.wins=193.30.54.5</span><br>
<span style="font-size:10pt;font-family:'Courier New'">export JAVA_OPTS=-Djcifs.smb.client.soTimeout=35000</span><br><span style="font-size:10pt;font-family:'Courier New'">export JAVA_OPTS=-Djcifs.resolveOrder=DNS</span><br>
<span style="font-size:10pt;font-family:'Courier New'">export JAVA_OPTS=-Djcifs.smb.client.dfs.disabled=true</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)">Correcty my if I wrong, but in the last test, if we set ‚</span><span style="font-size:10pt;font-family:Arial,sans-serif">jcifs.resolveOrder‘</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)"> to</span><span style="font-size:10pt;font-family:Arial,sans-serif"> ‚DNS‘,</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)"> why the property<u></u><u></u></span></p>
<p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)">‚</span><span style="font-size:10pt;font-family:'Courier New'">Djcifs.netbios.wins</span><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)">‘ is not ignored?<u></u><u></u></span></p>
<div class="im"><p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)">With best regards<u></u><u></u></span></p>
<p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><span style="font-size:10.5pt;font-family:Consolas;color:rgb(31,73,125)">Torsten Uhr<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Leiter Entwicklung TransConnect</span><sup><span style="font-size:11pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">®</span></sup></p>
</div></div></div></blockquote></div><div><br></div></div></div>