<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-13153</id>
	<title>Nabble - Samba - jcifs</title>
	<updated>2008-10-04T06:21:38Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Samba---jcifs-f13153.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Samba---jcifs-f13153.html" />
	<subtitle type="html">An SMB/CIFS implementation in Java.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19811993</id>
	<title>Re: multiple domain problem</title>
	<published>2008-10-04T06:21:38Z</published>
	<updated>2008-10-04T06:21:38Z</updated>
	<author>
		<name>AJ Weber</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3395&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;That's not always the case, thus the 
problem.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;----- Original Message ----- &lt;/DIV&gt;
  &lt;DIV style=&quot;BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black&quot;&gt;&lt;B&gt;From:&lt;/B&gt; 
  &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19811993&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ioplex@...&lt;/a&gt; 
  &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19811993&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swap_raw4u@...&lt;/a&gt; &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Cc:&lt;/B&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19811993&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt; &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Sent:&lt;/B&gt; Friday, October 03, 2008 11:40 
  AM&lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [jcifs] multiple domain 
  problem&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;On Fri, Oct 3, 2008 at 5:04 AM, swapnil rawat &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19811993&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swapsid@...&lt;/a&gt;&amp;gt; wrote:&lt;BR&gt;&amp;gt; Hi 
  Everyone,&lt;BR&gt;&amp;gt;&lt;BR&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Which property of 
  jcifs should be used , so that i can allow&lt;BR&gt;&amp;gt; users from multiple domain 
  to access my web application.&lt;BR&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So far i am using 
  jcifs.smb.client.domain property where i provide&lt;BR&gt;&amp;gt; my domain name as 
  value.&lt;BR&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Now i want to allow users from different domains to 
  access my web application&lt;BR&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Also i am using JCIFS NTLM HTTP 
  Authentication filter&lt;BR&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Any help is truely 
  appreciated&lt;BR&gt;&lt;BR&gt;Provided that there are trust relationships between the 
  domains, cross&lt;BR&gt;domain authentication should just work. No configuration 
  changes&lt;BR&gt;necessary.&lt;BR&gt;&lt;BR&gt;Mike&lt;BR&gt;&lt;BR&gt;-- &lt;BR&gt;Michael B Allen&lt;BR&gt;PHP Active 
  Directory SPNEGO SSO&lt;BR&gt;&lt;A href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/multiple-domain-problem-tp19794261p19811993.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19804214</id>
	<title>RE: multiple domain problem</title>
	<published>2008-10-03T12:32:49Z</published>
	<updated>2008-10-03T12:32:49Z</updated>
	<author>
		<name>Jose Luis Martinez Avial-2</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body bgcolor=white lang=EN-US link=blue vlink=blue&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I&amp;#8217;d appreciate if you can send me that
version. I made that change by myself, but I&amp;#8217;m not happy with the way I
did it, and I&amp;#8217;d like to see how you did it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Regards&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;JL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19804214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-bounces+jlmartinez=bpi-gruposantander.com@...&lt;/a&gt;
[mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19804214&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-bounces+jlmartinez=bpi-gruposantander.com@...&lt;/a&gt;] &lt;b&gt;&lt;span style='font-weight:bold'&gt;On Behalf Of &lt;/span&gt;&lt;/b&gt;AJ Weber&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Friday, October 03, 2008
8:35 AM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19804214&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swap_raw4u@...&lt;/a&gt;;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19804214&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: [jcifs] multiple
domain problem&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;I wrote a multi-domain version of the filter.&amp;nbsp; It's
still in &amp;quot;beta&amp;quot;, and it requires a minor change to one of the JCIFS
classes to allow it to work (I sent that request to Michael via the list, and
he hasn't replied at all).&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;I could package it and release it as soon as I get a chance.&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;-AJ&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;blockquote style='border:none;border-left:solid black 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;----- Original Message ----- &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div style='font-color:black'&gt;

&lt;p class=MsoNormal style='background:#E4E4E4'&gt;&lt;b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19804214&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swapsid@...&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'&gt;To:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19804214&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt; Friday, October
03, 2008 5:04 AM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt; [jcifs] multiple
domain problem&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;Hi Everyone,&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Which property of jcifs should be used , so that
i can allow&lt;br&gt;
users from multiple domain to access my web application.&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; So far i am using jcifs.smb.client.domain property where i
provide&lt;br&gt;
my domain name as value.&lt;br&gt;
&amp;nbsp;&amp;nbsp; Now i want to allow users from different domains to access my web
application&lt;br&gt;
&amp;nbsp;&amp;nbsp; Also i am using JCIFS NTLM HTTP Authentication filter&lt;br&gt;
&amp;nbsp;&amp;nbsp; Any help is truely appreciated&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/blockquote&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;

&lt;p&gt;

Internet communications are not secure and therefore Banco &lt;br&gt;
Santander International does not accept legal responsibility for &lt;br&gt;
the contents of this message. Any views or opinions presented are &lt;br&gt;
solely those of the author and do not necessarily represent those &lt;br&gt;
of Banco Santander International unless otherwise specifically &lt;br&gt;
stated. &lt;br&gt;
&lt;br&gt;
Las comunicaciones via Internet no son seguras y por lo tanto &lt;br&gt;
Banco Santander International no asume responsabilidad legal ni &lt;br&gt;
de ningun otro tipo por el contenido de este mensaje. Cualquier &lt;br&gt;
opinion transmitida pertenece unicamente al autor y no &lt;br&gt;
necesariamente representa la opinion del Banco Santander &lt;br&gt;
International a no ser que este expresamente detallado.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/multiple-domain-problem-tp19794261p19804214.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19800352</id>
	<title>Re: multiple domain problem</title>
	<published>2008-10-03T08:40:18Z</published>
	<updated>2008-10-03T08:40:18Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Fri, Oct 3, 2008 at 5:04 AM, swapnil rawat &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19800352&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swapsid@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi Everyone,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Which property of jcifs should be used , so that i can allow
&lt;br&gt;&amp;gt; users from multiple domain to access my web application.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;So far i am using jcifs.smb.client.domain property where i provide
&lt;br&gt;&amp;gt; my domain name as value.
&lt;br&gt;&amp;gt; &amp;nbsp; Now i want to allow users from different domains to access my web application
&lt;br&gt;&amp;gt; &amp;nbsp; Also i am using JCIFS NTLM HTTP Authentication filter
&lt;br&gt;&amp;gt; &amp;nbsp; Any help is truely appreciated
&lt;br&gt;&lt;br&gt;Provided that there are trust relationships between the domains, cross
&lt;br&gt;domain authentication should just work. No configuration changes
&lt;br&gt;necessary.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/multiple-domain-problem-tp19794261p19800352.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19796921</id>
	<title>Re: multiple domain problem</title>
	<published>2008-10-03T05:34:56Z</published>
	<updated>2008-10-03T05:34:56Z</updated>
	<author>
		<name>AJ Weber</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3395&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;I wrote a multi-domain version of the filter.&amp;nbsp; 
It's still in &quot;beta&quot;, and it requires a minor change to one of the JCIFS classes 
to allow it to work (I sent that request to Michael via the list, and he hasn't 
replied at all).&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;I could package it and release it as soon as I get 
a chance.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;-AJ&lt;/FONT&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;----- Original Message ----- &lt;/DIV&gt;
  &lt;DIV style=&quot;BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black&quot;&gt;&lt;B&gt;From:&lt;/B&gt; 
  &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19796921&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swapsid@...&lt;/a&gt; 
  &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19796921&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt; &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Sent:&lt;/B&gt; Friday, October 03, 2008 5:04 
  AM&lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Subject:&lt;/B&gt; [jcifs] multiple domain 
  problem&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;Hi Everyone,&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Which 
  property of jcifs should be used , so that i can allow&lt;BR&gt;users from multiple 
  domain to access my web application.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So far i am using 
  jcifs.smb.client.domain property where i provide&lt;BR&gt;my domain name as 
  value.&lt;BR&gt;&amp;nbsp;&amp;nbsp; Now i want to allow users from different domains to 
  access my web application&lt;BR&gt;&amp;nbsp;&amp;nbsp; Also i am using JCIFS NTLM HTTP 
  Authentication filter&lt;BR&gt;&amp;nbsp;&amp;nbsp; Any help is truely 
appreciated&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/multiple-domain-problem-tp19794261p19796921.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19794261</id>
	<title>multiple domain problem</title>
	<published>2008-10-03T02:04:42Z</published>
	<updated>2008-10-03T02:04:42Z</updated>
	<author>
		<name>swapnil rawat</name>
	</author>
	<content type="html">Hi Everyone,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Which property of jcifs should be used , so that i can allow
&lt;br&gt;users from multiple domain to access my web application.
&lt;br&gt;&amp;nbsp; &amp;nbsp; So far i am using jcifs.smb.client.domain property where i provide
&lt;br&gt;my domain name as value.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Now i want to allow users from different domains to access my web application
&lt;br&gt;&amp;nbsp; &amp;nbsp;Also i am using JCIFS NTLM HTTP Authentication filter
&lt;br&gt;&amp;nbsp; &amp;nbsp;Any help is truely appreciated
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/multiple-domain-problem-tp19794261p19794261.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19758418</id>
	<title>Re: Re: jcifs Digest, Vol 69, Issue 14</title>
	<published>2008-10-01T04:20:26Z</published>
	<updated>2008-10-01T04:20:26Z</updated>
	<author>
		<name>AsafM</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;I don&amp;#39;t think you have a way of avoiding it.&lt;div&gt;First, the user name and password you type in the web.xml is what I call a &amp;quot;machine&amp;quot; user. It is only used to create the session between the web server and the Active Directory. It&amp;#39;s part of a process called SMB Signing. You can read about it in the FAQ.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 1, 2008 at 9:40 AM, swapnil rawat &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swapsid@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
HI All,&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp;I am new to jcifs . I am asked to achieve SSO in my application&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp;I am using jcifs ntlm http authentication protocol.&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp;I am successfully able to apply SSO to my application but the&lt;br&gt;
only problem &amp;nbsp; &amp;nbsp;is &amp;nbsp;i have to provide username and password into my&lt;br&gt;
web.xml file.&lt;br&gt;
&lt;br&gt;
How could i achieve SSO without configuring the username and password&lt;br&gt;
in my web.xml file&lt;br&gt;
any help is truely appreciated&lt;br&gt;
Thankyou&lt;br&gt;
&lt;br&gt;
On 9/30/08, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-request@...&lt;/a&gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-request@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; Send jcifs mailing list submissions to&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; To subscribe or unsubscribe via the World Wide Web, visit&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://lists.samba.org/mailman/listinfo/jcifs&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/jcifs&lt;/a&gt;&lt;br&gt;
&amp;gt; or, via email, send a message with subject or body &amp;#39;help&amp;#39; to&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-request@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You can reach the person managing the list at&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-owner@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; When replying, please edit your Subject line so it is more specific&lt;br&gt;
&amp;gt; than &amp;quot;Re: Contents of jcifs digest...&amp;quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Today&amp;#39;s Topics:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp;1. Potential concurrency problem (Ronny Schuetz)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ----------------------------------------------------------------------&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Message: 1&lt;br&gt;
&amp;gt; Date: Tue, 30 Sep 2008 12:56:13 +0200&lt;br&gt;
&amp;gt; From: Ronny Schuetz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Usenet.r96@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; Subject: [jcifs] Potential concurrency problem&lt;br&gt;
&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;&lt;br&gt;
&amp;gt; Message-ID: &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gbt0lu.12j8.1@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; Content-Type: text/plain; charset=ISO-8859-1&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; jCIFS version is &lt;a href=&quot;http://1.2.19.&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;1.2.19.&lt;/a&gt; Just ran into an ArrayIndexOutOfBoundsException&lt;br&gt;
&amp;gt; in NbtAddress#getWINSAddress(). NbtAddress#NBNS contains 4 entries, Java&lt;br&gt;
&amp;gt; failed to access index 4.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The only reason why the index was incremented to 4 is - as it looks like&lt;br&gt;
&amp;gt; - that NbtAddress#switchWINS() (at least the part incrementing&lt;br&gt;
&amp;gt; nbnsIndex) isn&amp;#39;t synchronized, i.e. it could happen that it gets&lt;br&gt;
&amp;gt; incremented to a value outside the array bounds if executed by multiple&lt;br&gt;
&amp;gt; threads in parallel.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This can be verified by using multiple threads calling&lt;br&gt;
&amp;gt; UniAddress#getByName() in loops in parallel (with&lt;br&gt;
&amp;gt; jcifs.netbios.cachePolicy set to 0 and all netbios timeouts set 1 to&lt;br&gt;
&amp;gt; enforce the switching) and replacing the line (NbtAddress#switchWINS()):&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; nbnsIndex = (nbnsIndex + 1) &amp;lt; NBNS.length ? nbnsIndex + 1 : 0;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; by equivalent code that includes some sleeps at the right place&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if((nbnsIndex + 1) &amp;lt; NBNS.length)&lt;br&gt;
&amp;gt; {&lt;br&gt;
&amp;gt; &amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}&lt;br&gt;
&amp;gt; &amp;nbsp;nbnsIndex = nbnsIndex + 1;&lt;br&gt;
&amp;gt; }&lt;br&gt;
&amp;gt; else&lt;br&gt;
&amp;gt; {&lt;br&gt;
&amp;gt; &amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}&lt;br&gt;
&amp;gt; &amp;nbsp;nbnsIndex = 0;&lt;br&gt;
&amp;gt; }&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Synchronizing the method NbtAddress#switchWINS() in general or just the&lt;br&gt;
&amp;gt; line changing the index on the class object seems to help.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Best regards,&lt;br&gt;
&amp;gt; Ronny&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ------------------------------&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; jcifs mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19758418&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;https://lists.samba.org/mailman/listinfo/jcifs&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/jcifs&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; End of jcifs Digest, Vol 69, Issue 14&lt;br&gt;
&amp;gt; *************************************&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-jcifs-Digest%2C-Vol-69%2C-Issue-14-tp19755267p19758418.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19756418</id>
	<title>Re: Potential concurrency problem</title>
	<published>2008-10-01T01:22:12Z</published>
	<updated>2008-10-01T01:22:12Z</updated>
	<author>
		<name>Ronny Schuetz-4</name>
	</author>
	<content type="html">Michael B Allen wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Mhm, I usually tend to synchronize as close as possible to the place
&lt;br&gt;&amp;gt;&amp;gt; where the variable is changed.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is no correlation between correctly synchronizing access to
&lt;br&gt;&amp;gt; shared variables and their proximity.
&lt;br&gt;&lt;br&gt;But it helps to make the code clearer and avoids future errors in case
&lt;br&gt;the methods using the variable are called from additional places. I
&lt;br&gt;don't want to spend my time discussing that. I don't care how the issue
&lt;br&gt;gets addressed.
&lt;br&gt;&lt;br&gt;Ronny
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Potential-concurrency-problem-tp19739882p19756418.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19755267</id>
	<title>Re: jcifs Digest, Vol 69, Issue 14</title>
	<published>2008-09-30T23:40:26Z</published>
	<updated>2008-09-30T23:40:26Z</updated>
	<author>
		<name>swapnil rawat</name>
	</author>
	<content type="html">HI All,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am new to jcifs . I am asked to achieve SSO in my application
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am using jcifs ntlm http authentication protocol.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am successfully able to apply SSO to my application but the
&lt;br&gt;only problem &amp;nbsp; &amp;nbsp;is &amp;nbsp;i have to provide username and password into my
&lt;br&gt;web.xml file.
&lt;br&gt;&lt;br&gt;How could i achieve SSO without configuring the username and password
&lt;br&gt;in my web.xml file
&lt;br&gt;any help is truely appreciated
&lt;br&gt;Thankyou
&lt;br&gt;&lt;br&gt;On 9/30/08, &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-request@...&lt;/a&gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-request@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Send jcifs mailing list submissions to
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To subscribe or unsubscribe via the World Wide Web, visit
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/jcifs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/jcifs&lt;/a&gt;&lt;br&gt;&amp;gt; or, via email, send a message with subject or body 'help' to
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-request@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can reach the person managing the list at
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs-owner@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When replying, please edit your Subject line so it is more specific
&lt;br&gt;&amp;gt; than &amp;quot;Re: Contents of jcifs digest...&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Today's Topics:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;1. Potential concurrency problem (Ronny Schuetz)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Message: 1
&lt;br&gt;&amp;gt; Date: Tue, 30 Sep 2008 12:56:13 +0200
&lt;br&gt;&amp;gt; From: Ronny Schuetz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Usenet.r96@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: [jcifs] Potential concurrency problem
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Message-ID: &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gbt0lu.12j8.1@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Content-Type: text/plain; charset=ISO-8859-1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; jCIFS version is 1.2.19. Just ran into an ArrayIndexOutOfBoundsException
&lt;br&gt;&amp;gt; in NbtAddress#getWINSAddress(). NbtAddress#NBNS contains 4 entries, Java
&lt;br&gt;&amp;gt; failed to access index 4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only reason why the index was incremented to 4 is - as it looks like
&lt;br&gt;&amp;gt; - that NbtAddress#switchWINS() (at least the part incrementing
&lt;br&gt;&amp;gt; nbnsIndex) isn't synchronized, i.e. it could happen that it gets
&lt;br&gt;&amp;gt; incremented to a value outside the array bounds if executed by multiple
&lt;br&gt;&amp;gt; threads in parallel.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This can be verified by using multiple threads calling
&lt;br&gt;&amp;gt; UniAddress#getByName() in loops in parallel (with
&lt;br&gt;&amp;gt; jcifs.netbios.cachePolicy set to 0 and all netbios timeouts set 1 to
&lt;br&gt;&amp;gt; enforce the switching) and replacing the line (NbtAddress#switchWINS()):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nbnsIndex = (nbnsIndex + 1) &amp;lt; NBNS.length ? nbnsIndex + 1 : 0;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; by equivalent code that includes some sleeps at the right place
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if((nbnsIndex + 1) &amp;lt; NBNS.length)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}
&lt;br&gt;&amp;gt; &amp;nbsp;nbnsIndex = nbnsIndex + 1;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; else
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}
&lt;br&gt;&amp;gt; &amp;nbsp;nbnsIndex = 0;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Synchronizing the method NbtAddress#switchWINS() in general or just the
&lt;br&gt;&amp;gt; line changing the index on the class object seems to help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Ronny
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; jcifs mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19755267&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.samba.org/mailman/listinfo/jcifs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/jcifs&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; End of jcifs Digest, Vol 69, Issue 14
&lt;br&gt;&amp;gt; *************************************
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-jcifs-Digest%2C-Vol-69%2C-Issue-14-tp19755267p19755267.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19747499</id>
	<title>Re: Re: Potential concurrency problem</title>
	<published>2008-09-30T11:10:32Z</published>
	<updated>2008-09-30T11:10:32Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Tue, Sep 30, 2008 at 11:22 AM, Ronny Schuetz
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19747499&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Usenet.r96@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Mike,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks for your reply.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yup. This is a concurrency error (albeit one that will only occur if
&lt;br&gt;&amp;gt;&amp;gt; you have an unresponsive WINS server and rarely at that).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; However, synchronizing switchWINS is not a good solution as it will
&lt;br&gt;&amp;gt;&amp;gt; still leave the possibility for concurrency problems.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You should use the NameServiceClient.java lock where it is calling
&lt;br&gt;&amp;gt;&amp;gt; switchWINS. Meaning add a synchronized (LOCK) { } around that WINS
&lt;br&gt;&amp;gt;&amp;gt; manipulation like:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 261 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; synchronized (LOCK) {
&lt;br&gt;&amp;gt;&amp;gt; 262 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NbtAddress.isWINS( request.addr ) == false)
&lt;br&gt;&amp;gt;&amp;gt; 263 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;gt;&amp;gt; 264
&lt;br&gt;&amp;gt;&amp;gt; 265 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Message was sent to WINS but
&lt;br&gt;&amp;gt;&amp;gt; 266 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* failed to receive response.
&lt;br&gt;&amp;gt;&amp;gt; 267 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Try a different WINS server.
&lt;br&gt;&amp;gt;&amp;gt; 268 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt;&amp;gt; 269 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (request.addr == NbtAddress.getWINSAddress())
&lt;br&gt;&amp;gt;&amp;gt; 270 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NbtAddress.switchWINS();
&lt;br&gt;&amp;gt;&amp;gt; 271 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addr = NbtAddress.getWINSAddress();
&lt;br&gt;&amp;gt;&amp;gt; 272 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mhm, I usually tend to synchronize as close as possible to the place
&lt;br&gt;&amp;gt; where the variable is changed.
&lt;/div&gt;&lt;br&gt;There is no correlation between correctly synchronizing access to
&lt;br&gt;shared variables and their proximity.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Anyway, just found a better solution that
&lt;br&gt;&amp;gt; is safe without additional synchronization. Just replace
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nbnsIndex = (nbnsIndex + 1) &amp;lt; NBNS.length ? nbnsIndex + 1 : 0;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; with
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nbnsIndex = NBNS.length &amp;gt; 0 ? (nbnsIndex + 1) % NBNS.length : 0;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This should fix the issue. Worst case, nbnsIndex isn't incremented as
&lt;br&gt;&amp;gt; often as switchWINS() has been called, but it cannot exceed the array
&lt;br&gt;&amp;gt; bounds. Works fine here.
&lt;/div&gt;&lt;br&gt;That will not fix the overall concurrency issue but it might
&lt;br&gt;sufficiently mask it.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Potential-concurrency-problem-tp19739882p19747499.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19744345</id>
	<title>Re: Potential concurrency problem</title>
	<published>2008-09-30T08:22:44Z</published>
	<updated>2008-09-30T08:22:44Z</updated>
	<author>
		<name>Ronny Schuetz-4</name>
	</author>
	<content type="html">Hi Mike,
&lt;br&gt;&lt;br&gt;thanks for your reply.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Yup. This is a concurrency error (albeit one that will only occur if
&lt;br&gt;&amp;gt; you have an unresponsive WINS server and rarely at that).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, synchronizing switchWINS is not a good solution as it will
&lt;br&gt;&amp;gt; still leave the possibility for concurrency problems.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You should use the NameServiceClient.java lock where it is calling
&lt;br&gt;&amp;gt; switchWINS. Meaning add a synchronized (LOCK) { } around that WINS
&lt;br&gt;&amp;gt; manipulation like:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 261 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; synchronized (LOCK) {
&lt;br&gt;&amp;gt; 262 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NbtAddress.isWINS( request.addr ) == false)
&lt;br&gt;&amp;gt; 263 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;gt; 264
&lt;br&gt;&amp;gt; 265 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Message was sent to WINS but
&lt;br&gt;&amp;gt; 266 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* failed to receive response.
&lt;br&gt;&amp;gt; 267 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Try a different WINS server.
&lt;br&gt;&amp;gt; 268 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; 269 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (request.addr == NbtAddress.getWINSAddress())
&lt;br&gt;&amp;gt; 270 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NbtAddress.switchWINS();
&lt;br&gt;&amp;gt; 271 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addr = NbtAddress.getWINSAddress();
&lt;br&gt;&amp;gt; 272 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;Mhm, I usually tend to synchronize as close as possible to the place
&lt;br&gt;where the variable is changed. Anyway, just found a better solution that
&lt;br&gt;is safe without additional synchronization. Just replace
&lt;br&gt;&lt;br&gt;nbnsIndex = (nbnsIndex + 1) &amp;lt; NBNS.length ? nbnsIndex + 1 : 0;
&lt;br&gt;&lt;br&gt;with
&lt;br&gt;&lt;br&gt;nbnsIndex = NBNS.length &amp;gt; 0 ? (nbnsIndex + 1) % NBNS.length : 0;
&lt;br&gt;&lt;br&gt;This should fix the issue. Worst case, nbnsIndex isn't incremented as
&lt;br&gt;often as switchWINS() has been called, but it cannot exceed the array
&lt;br&gt;bounds. Works fine here.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Ronny
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Potential-concurrency-problem-tp19739882p19744345.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19743545</id>
	<title>Re: Potential concurrency problem</title>
	<published>2008-09-30T07:44:17Z</published>
	<updated>2008-09-30T07:44:17Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Tue, Sep 30, 2008 at 6:56 AM, Ronny Schuetz &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19743545&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Usenet.r96@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; jCIFS version is 1.2.19. Just ran into an ArrayIndexOutOfBoundsException
&lt;br&gt;&amp;gt; in NbtAddress#getWINSAddress(). NbtAddress#NBNS contains 4 entries, Java
&lt;br&gt;&amp;gt; failed to access index 4.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only reason why the index was incremented to 4 is - as it looks like
&lt;br&gt;&amp;gt; - that NbtAddress#switchWINS() (at least the part incrementing
&lt;br&gt;&amp;gt; nbnsIndex) isn't synchronized, i.e. it could happen that it gets
&lt;br&gt;&amp;gt; incremented to a value outside the array bounds if executed by multiple
&lt;br&gt;&amp;gt; threads in parallel.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This can be verified by using multiple threads calling
&lt;br&gt;&amp;gt; UniAddress#getByName() in loops in parallel (with
&lt;br&gt;&amp;gt; jcifs.netbios.cachePolicy set to 0 and all netbios timeouts set 1 to
&lt;br&gt;&amp;gt; enforce the switching) and replacing the line (NbtAddress#switchWINS()):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; nbnsIndex = (nbnsIndex + 1) &amp;lt; NBNS.length ? nbnsIndex + 1 : 0;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; by equivalent code that includes some sleeps at the right place
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if((nbnsIndex + 1) &amp;lt; NBNS.length)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}
&lt;br&gt;&amp;gt; &amp;nbsp;nbnsIndex = nbnsIndex + 1;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; else
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}
&lt;br&gt;&amp;gt; &amp;nbsp;nbnsIndex = 0;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Synchronizing the method NbtAddress#switchWINS() in general or just the
&lt;br&gt;&amp;gt; line changing the index on the class object seems to help.
&lt;/div&gt;&lt;br&gt;Yup. This is a concurrency error (albeit one that will only occur if
&lt;br&gt;you have an unresponsive WINS server and rarely at that).
&lt;br&gt;&lt;br&gt;However, synchronizing switchWINS is not a good solution as it will
&lt;br&gt;still leave the possibility for concurrency problems.
&lt;br&gt;&lt;br&gt;You should use the NameServiceClient.java lock where it is calling
&lt;br&gt;switchWINS. Meaning add a synchronized (LOCK) { } around that WINS
&lt;br&gt;manipulation like:
&lt;br&gt;&lt;br&gt;261 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; synchronized (LOCK) {
&lt;br&gt;262 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NbtAddress.isWINS( request.addr ) == false)
&lt;br&gt;263 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;264
&lt;br&gt;265 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Message was sent to WINS but
&lt;br&gt;266 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* failed to receive response.
&lt;br&gt;267 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Try a different WINS server.
&lt;br&gt;268 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;269 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (request.addr == NbtAddress.getWINSAddress())
&lt;br&gt;270 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NbtAddress.switchWINS();
&lt;br&gt;271 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.addr = NbtAddress.getWINSAddress();
&lt;br&gt;272 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Please try this and let me know. If it works OK I'll incorporate the fix.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Potential-concurrency-problem-tp19739882p19743545.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19739882</id>
	<title>Potential concurrency problem</title>
	<published>2008-09-30T03:56:13Z</published>
	<updated>2008-09-30T03:56:13Z</updated>
	<author>
		<name>Ronny Schuetz-4</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;jCIFS version is 1.2.19. Just ran into an ArrayIndexOutOfBoundsException
&lt;br&gt;in NbtAddress#getWINSAddress(). NbtAddress#NBNS contains 4 entries, Java
&lt;br&gt;failed to access index 4.
&lt;br&gt;&lt;br&gt;The only reason why the index was incremented to 4 is - as it looks like
&lt;br&gt;- that NbtAddress#switchWINS() (at least the part incrementing
&lt;br&gt;nbnsIndex) isn't synchronized, i.e. it could happen that it gets
&lt;br&gt;incremented to a value outside the array bounds if executed by multiple
&lt;br&gt;threads in parallel.
&lt;br&gt;&lt;br&gt;This can be verified by using multiple threads calling
&lt;br&gt;UniAddress#getByName() in loops in parallel (with
&lt;br&gt;jcifs.netbios.cachePolicy set to 0 and all netbios timeouts set 1 to
&lt;br&gt;enforce the switching) and replacing the line (NbtAddress#switchWINS()):
&lt;br&gt;&lt;br&gt;nbnsIndex = (nbnsIndex + 1) &amp;lt; NBNS.length ? nbnsIndex + 1 : 0;
&lt;br&gt;&lt;br&gt;by equivalent code that includes some sleeps at the right place
&lt;br&gt;&lt;br&gt;if((nbnsIndex + 1) &amp;lt; NBNS.length)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}
&lt;br&gt;&amp;nbsp;nbnsIndex = nbnsIndex + 1;
&lt;br&gt;}
&lt;br&gt;else
&lt;br&gt;{
&lt;br&gt;&amp;nbsp;try { Thread.sleep(1000); } catch(InterruptedException e) {}
&lt;br&gt;&amp;nbsp;nbnsIndex = 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Synchronizing the method NbtAddress#switchWINS() in general or just the
&lt;br&gt;line changing the index on the class object seems to help.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Ronny
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Potential-concurrency-problem-tp19739882p19739882.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19718374</id>
	<title>Come join me on Review Japan.</title>
	<published>2008-09-28T21:15:37Z</published>
	<updated>2008-09-28T21:15:37Z</updated>
	<author>
		<name>P Alb-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
	&lt;title&gt;Network Email&lt;/title&gt;
&lt;/head&gt;
&lt;body style=&quot;padding:0; margin:16px; font-size:12px; font-family:'lucida grande', tahoma, helvetica, arial, sans-serif;&quot;&gt;

&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; width=&quot;98%&quot; style=&quot;height: 98%&quot;&gt;
	&lt;tr&gt;
	&lt;td valign=&quot;top&quot; align=&quot;center&quot; style=&quot;font:12px 'lucida grande', tahoma, helvetica, arial, sans-serif; padding: 10px;&quot;&gt;
		&lt;table width=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; style=&quot;border:3px solid #ccc&quot;&gt;
		  &lt;tr&gt;
			&lt;td bgcolor=&quot;#222222&quot; style=&quot;padding:4px 12px; color:#CCCCCC;&quot;&gt;
	
			  &lt;div style=&quot;font-size:18px;&quot;&gt;
				Join me on &lt;b&gt;Review Japan&lt;/b&gt;			  &lt;/div&gt;
			  &lt;div style=&quot;font-size:12px;&quot;&gt;&amp;quot;A place to share your experiences and memories of Japan&amp;quot;&lt;/div&gt;
			&lt;/td&gt;
		  &lt;/tr&gt;
		  &lt;tr&gt;
			&lt;td bgcolor=&quot;#ffffff&quot; width=&quot;*&quot; style=&quot;font-size:12px;padding: 10px;&quot; valign=&quot;top&quot;&gt;
			  &lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;100%&quot;&gt;
			    &lt;tr&gt;
				  			      &lt;td width=&quot;96&quot; valign=&quot;top&quot; style=&quot;font-size: 12px; padding-right: 10px;&quot;&gt;
									        &lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img height=&quot;96&quot; width=&quot;96&quot; border=&quot;0&quot; alt=&quot;P Alb&quot; src=&quot;http://api.ning.com/files/GHRF3se2WETn0TgtGF4qMYx4gunGr2vFQj9AZ16toH3RZo90kwIuBiGdHlgJvOaOVIj8iqHJt2avlucw0SkzhvXR6jeKgMkS/ist2_3673435_fast_train.jpg?width=96&amp;amp;height=96&amp;amp;crop=1%3A1&amp;amp;xn_auth=no&quot;&gt;&lt;/a&gt;
				        &lt;div style=&quot;padding:6px 0;&quot;&gt;&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; style=&quot;text-decoration:none&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;P Alb&lt;/a&gt; has:&lt;/a&gt;&lt;/div&gt;
				        &lt;span style=&quot;font-size:11px;white-space:nowrap&quot;&gt;144 friends&lt;br /&gt;3 photos&lt;br /&gt;12 videos&lt;br /&gt;12 discussions&lt;br /&gt;16 blog posts&lt;br /&gt;3 songs&lt;/span&gt;
								      &lt;/td&gt;
				  			      &lt;td valign=&quot;top&quot; style=&quot;font-size: 12px;&quot;&gt;
					&lt;div style=&quot;font-size:13px; padding:8px 16px 16px;&quot;&gt;
						Come join me on Review Japan!&lt;br /&gt;&lt;br /&gt; - P Alb					&lt;/div&gt;
					&lt;div align=&quot;center&quot;&gt;
			        &lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; class=&quot;xg_button&quot; style=&quot;display:block; text-decoration:none; background:#ffff99; color:#432; border:1px solid; border-color:#fc0 #ca0 #ca0 #fc0; font-size:18px; font-weight:bold; text-align:center; width:220px; line-height:37px; margin:12px auto;&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Click to Join&lt;/a&gt;&lt;br /&gt;
					&lt;/div&gt;
			        					  Members on Review Japan:					  &lt;table style=&quot;margin-top:6px&quot; width=&quot;360&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;
						&lt;tr&gt;
												  &lt;td style=&quot;text-align:center; padding-right:10px; padding-bottom: 10px&quot; valign=&quot;top&quot;&gt;
						  	&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img height=&quot;64&quot; width=&quot;64&quot; border=&quot;0&quot; alt=&quot;Mike Tokue&quot; src=&quot;http://api.ning.com/files/-7-17Ut3vwpGFPEOqB8OQpmBUCdUpKCaAgw58Roled6wslIf1noJoPSuqqIW-41Ymv6h-a9ZWAxbGwoTYOgMvZ3OY5Vk1GIr/112703625.png?width=64&amp;amp;height=64&amp;amp;crop=1%3A1&amp;amp;xn_auth=no&quot;&gt;&lt;/a&gt;
							&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; style=&quot;font-size:11px; text-decoration:none;display:block;&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mike Tokue&lt;/a&gt;
						  &lt;/td&gt;
												  &lt;td style=&quot;text-align:center; padding-right:10px; padding-bottom: 10px&quot; valign=&quot;top&quot;&gt;
						  	&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img height=&quot;64&quot; width=&quot;64&quot; border=&quot;0&quot; alt=&quot;Nur Awatif&quot; src=&quot;http://api.ning.com/files/dx5jX27VX5h1gD5kStjymeReBsPkX2wqFsf5Vmae8OrtRrbG3xfoy*5X7*TV*uT2Y5PVWem7IO5BIt8oOdr5Xa6BK0iButMu/2307538796_08eeae7c24.jpg?width=64&amp;amp;height=64&amp;amp;crop=1%3A1&amp;amp;xn_auth=no&quot;&gt;&lt;/a&gt;
							&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; style=&quot;font-size:11px; text-decoration:none;display:block;&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nur Awatif&lt;/a&gt;
						  &lt;/td&gt;
												  &lt;td style=&quot;text-align:center; padding-right:10px; padding-bottom: 10px&quot; valign=&quot;top&quot;&gt;
						  	&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img height=&quot;64&quot; width=&quot;64&quot; border=&quot;0&quot; alt=&quot;Susan Ball ...&quot; src=&quot;http://api.ning.com/files/N3a4E7n0Bney6ce9aZwv8UnlRNxR-i8tXigfrB1DjmtrpfIpQDwPfRA2a7RGcddDybP1uPJbUaSasQjg0qUmtEFj3m-1UFIs/110890986.png?width=64&amp;amp;height=64&amp;amp;crop=1%3A1&amp;amp;xn_auth=no&quot;&gt;&lt;/a&gt;
							&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; style=&quot;font-size:11px; text-decoration:none;display:block;&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Susan Ball Faeder&lt;/a&gt;
						  &lt;/td&gt;
												  &lt;td style=&quot;text-align:center; padding-right:10px; padding-bottom: 10px&quot; valign=&quot;top&quot;&gt;
						  	&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img height=&quot;64&quot; width=&quot;64&quot; border=&quot;0&quot; alt=&quot;nipagard&quot; src=&quot;http://api.ning.com/files/j7-2JLu-M3MhGejYFumYAIh9sTIzrjtMuhDfm6DE0TQRNx4Mb1eevqT3dJpbQghd3TPm*77B*TFphDy57G0U-5VnSzZ3rvVU/81054628.png?width=64&amp;amp;height=64&amp;amp;crop=1%3A1&amp;amp;xn_auth=no&quot;&gt;&lt;/a&gt;
							&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; style=&quot;font-size:11px; text-decoration:none;display:block;&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nipagard&lt;/a&gt;
						  &lt;/td&gt;
												  &lt;td style=&quot;text-align:center; padding-right:10px; padding-bottom: 10px&quot; valign=&quot;top&quot;&gt;
						  	&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img height=&quot;64&quot; width=&quot;64&quot; border=&quot;0&quot; alt=&quot;Lia&quot; src=&quot;http://api.ning.com/files/4dOUmc7igPdmSYBleW8u1Gd*7eNCGx5cml2t2oh9JLdyG8Tu3zUS4YaX6tQm4nGhCpvnN3rX10GgspakLcmE6DOjvOcRoXwT/75225187.png?width=64&amp;amp;height=64&amp;amp;crop=1%3A1&amp;amp;xn_auth=no&quot;&gt;&lt;/a&gt;
							&lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; style=&quot;font-size:11px; text-decoration:none;display:block;&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Lia&lt;/a&gt;
						  &lt;/td&gt;
												&lt;/tr&gt;
					  &lt;/table&gt;
										  
					      &lt;div style=&quot;font-weight:bold; padding:8px 0;border-top:1px solid #aaa;&quot;&gt;About Review Japan&lt;/div&gt;
              &lt;div style=&quot;padding-bottom:12px&quot;&gt;&amp;quot;A place to share your experiences and memories of Japan, and share reviews of restaurants, places, products, activities, movies, and all things Japanese&amp;quot;&lt;/div&gt;
                    &lt;table width=&quot;100%&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;
          &lt;tr&gt;
                                &lt;td width=&quot;74&quot; style=&quot;padding-right:10px; font-size: 12px;&quot; valign=&quot;top&quot;&gt;
                    &lt;a href=&quot;http://reviewjapan.ning.com/?xgi=gbL2FAt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img height=&quot;64&quot; width=&quot;64&quot; border=&quot;0&quot; alt=&quot;Review Japan&quot; src=&quot;http://api.ning.com/icons/appatar/2030938?default=2030938&amp;amp;width=96&amp;amp;height=96&quot;&gt;&lt;/a&gt;
                &lt;/td&gt;
                                &lt;td style=&quot;padding-right:10px; font-size: 12px;&quot; valign=&quot;top&quot;&gt;
                                                            172 members&lt;br /&gt;46 photos&lt;br /&gt;11 songs&lt;br /&gt;&lt;/td&gt;&lt;td style=&quot;padding-right:10px; font-size: 12px;&quot; valign=&quot;top&quot;&gt;23 videos&lt;br /&gt;23 discussions&lt;br /&gt;24 blog posts&lt;br /&gt;                                                    &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    			      &lt;/td&gt;
			    &lt;/tr&gt;
			  &lt;/table&gt;


	
			  &lt;div style=&quot;border-bottom:1px solid #aaa; height:10px;&quot;&gt;&amp;nbsp;&lt;/div&gt;
			  &lt;div style=&quot;color:#777777; font-size:11px; padding-top: 5px;&quot;&gt;
    To control which emails you receive on Review Japan, &lt;a href=&quot;http://reviewjapan.ning.com/?xgo=UkyuxX50110x9Nfu0gJdvbfM0YQnj/QLE4FoFVmvEdIgOmzAavcOuA80haTroYIc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;click here&lt;/a&gt;&lt;/div&gt;
		  &lt;/td&gt;
		&lt;/tr&gt;
	  &lt;/table&gt;
	&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;


&lt;img src=&quot;http://reviewjapan.ning.com/xn_resources/widgets/index/gfx/spacer.gif?msgtype=invitation&quot; width=&quot;1&quot; height=&quot;1&quot; alt=&quot;&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Come-join-me-on-Review-Japan.-tp19718374p19718374.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19637697</id>
	<title>Re: networkExplorer: don't prompt for username/password</title>
	<published>2008-09-23T14:42:59Z</published>
	<updated>2008-09-23T14:42:59Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Tue, Sep 23, 2008 at 5:16 PM, Newell, Gary &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19637697&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gary.newell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; JCIFS Guru's:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a jcifs setting that will modify networkExplorer's default behavior
&lt;br&gt;&amp;gt; such that if an openFile attempt fails, then it will not prompt the user for
&lt;br&gt;&amp;gt; a username/password? &amp;nbsp;Instead, I just want it to report the failure status
&lt;br&gt;&amp;gt; back to me and continue.
&lt;br&gt;&lt;br&gt;Probably if you change the logic of the } catch( SmbAuthException sae ) { block.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/networkExplorer%3A--don%27t-prompt-for-username-password-tp19637383p19637697.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19637643</id>
	<title>Re: networkExplorer: determine domain\username</title>
	<published>2008-09-23T14:39:49Z</published>
	<updated>2008-09-23T14:39:49Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Tue, Sep 23, 2008 at 5:25 PM, Newell, Gary &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19637643&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gary.newell@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; jcifs:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is it possible in networkExplorer to determine what domain\username is
&lt;br&gt;&amp;gt; currently accessing the servlet?
&lt;br&gt;&lt;br&gt;Yes. There's a line in doGet that looks like:
&lt;br&gt;&lt;br&gt;&amp;nbsp; req.getSession().setAttribute( &amp;quot;npa-&amp;quot; + server, ntlm );
&lt;br&gt;&lt;br&gt;You can get to the domain an username from the ntlm object.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/networkExplorer%3A--determine-domain%5Cusername-tp19637358p19637643.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19637358</id>
	<title>networkExplorer:  determine domain\username</title>
	<published>2008-09-23T14:25:02Z</published>
	<updated>2008-09-23T14:25:02Z</updated>
	<author>
		<name>Newell, Gary</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3354&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;jcifs:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;Is 
it possible in networkExplorer to determine what domain\username is currently 
accessing the servlet?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;Thanks!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;Gary&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=378042121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/networkExplorer%3A--determine-domain%5Cusername-tp19637358p19637358.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19637383</id>
	<title>networkExplorer:  don't prompt for username/password</title>
	<published>2008-09-23T14:16:36Z</published>
	<updated>2008-09-23T14:16:36Z</updated>
	<author>
		<name>Newell, Gary</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3354&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;JCIFS Guru's:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;Is 
there a jcifs setting that will modify networkExplorer's default behavior such 
that if an openFile&amp;nbsp;attempt fails, then it will &lt;U&gt;not&lt;/U&gt;&amp;nbsp;prompt the 
user for a username/password?&amp;nbsp; Instead, I just want it to report the 
failure status back to me and continue.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;Thanks!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;Gary&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Comic Sans MS&quot; color=#008000&gt;&lt;SPAN class=442300121-23092008&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/networkExplorer%3A--don%27t-prompt-for-username-password-tp19637383p19637383.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19629107</id>
	<title>Re: Windows domain required for authentication?</title>
	<published>2008-09-23T07:31:36Z</published>
	<updated>2008-09-23T07:31:36Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Tue, Sep 23, 2008 at 3:34 AM, Hannes &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19629107&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info4h@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; within a prototyping project we have to evaluate authentication on a Windows
&lt;br&gt;&amp;gt; domain from a Java application running on Linux. My question is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - do I really need a Windows domain controller installed or can I authentify
&lt;br&gt;&amp;gt; against Samba on a Linux based host instead of a Windows Box?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to avoid bringing a Windows machine into my project. It would be
&lt;br&gt;&amp;gt; great if we could simulate it with Samba!
&lt;/div&gt;&lt;br&gt;It depends. Are you talking about a web application that uses the NTLM
&lt;br&gt;HTTP Filter or something else that would call SmbSession.logon()
&lt;br&gt;directly?
&lt;br&gt;&lt;br&gt;If you're using the Filter then see the &amp;quot;logonShare&amp;quot; example in the
&lt;br&gt;NTLM HTTP Filter document.
&lt;br&gt;&lt;br&gt;If you're using SmbSession.logon() then you would just supply a &amp;quot;dc&amp;quot;
&lt;br&gt;that constructed from a URL pointing to a share on a machine that is
&lt;br&gt;an authority for the users you are authenticating.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Windows-domain-required-for-authentication--tp19622944p19629107.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19626494</id>
	<title>Re: Windows domain required for authentication?</title>
	<published>2008-09-23T05:19:53Z</published>
	<updated>2008-09-23T05:19:53Z</updated>
	<author>
		<name>AJ Weber</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.3395&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;Yes, you can use Samba, and even just use a 
workstation with a file-share for prototyping/testing.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;----- Original Message ----- &lt;/DIV&gt;
  &lt;DIV style=&quot;BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black&quot;&gt;&lt;B&gt;From:&lt;/B&gt; 
  &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19626494&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info4h@...&lt;/a&gt; &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19626494&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jcifs@...&lt;/a&gt; &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Sent:&lt;/B&gt; Tuesday, September 23, 2008 3:34 
  AM&lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Subject:&lt;/B&gt; [jcifs] Windows domain required 
  for authentication?&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;Hi all,&lt;BR&gt;&lt;BR&gt;within a prototyping project we have to evaluate 
  authentication on a Windows&lt;BR&gt;domain from a Java application running on 
  Linux. My question is:&lt;BR&gt;&lt;BR&gt;- do I really need a Windows domain controller 
  installed or can I authentify&lt;BR&gt;against Samba on a Linux based host instead 
  of a Windows Box?&lt;BR&gt;&lt;BR&gt;I would like to avoid bringing a Windows machine into 
  my project. It would be&lt;BR&gt;great if we could simulate it with 
  Samba!&lt;BR&gt;&lt;BR&gt;Any hint is appreciated!&lt;BR&gt;&lt;BR&gt;Best 
regards&lt;BR&gt;Hannes&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Windows-domain-required-for-authentication--tp19622944p19626494.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19622944</id>
	<title>Windows domain required for authentication?</title>
	<published>2008-09-23T00:34:59Z</published>
	<updated>2008-09-23T00:34:59Z</updated>
	<author>
		<name>Hannes-15</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;within a prototyping project we have to evaluate authentication on a Windows
&lt;br&gt;domain from a Java application running on Linux. My question is:
&lt;br&gt;&lt;br&gt;- do I really need a Windows domain controller installed or can I authentify
&lt;br&gt;against Samba on a Linux based host instead of a Windows Box?
&lt;br&gt;&lt;br&gt;I would like to avoid bringing a Windows machine into my project. It would be
&lt;br&gt;great if we could simulate it with Samba!
&lt;br&gt;&lt;br&gt;Any hint is appreciated!
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;Hannes
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Windows-domain-required-for-authentication--tp19622944p19622944.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19591614</id>
	<title>llgY Young lolitas and boys fucking site. zag They so young</title>
	<published>2008-09-20T21:30:53Z</published>
	<updated>2008-09-20T21:30:53Z</updated>
	<author>
		<name>PATRICIA MUSTOE</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman, new york, times, serif;font-size:12pt&quot;&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/llgY-Young-lolitas-and-boys-fucking-site.-zag-They-so-young-tp19591614p19591614.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19591332</id>
	<title>Re: deadlock in jcifs jar..</title>
	<published>2008-09-20T20:36:31Z</published>
	<updated>2008-09-20T20:36:31Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Sat, Sep 20, 2008 at 9:06 PM, Con O'Donnell &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19591332&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;conod@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi I think there is a potential deadlock condition in 1.2.23/1.2.24
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I call logon from mutliple threads and one of them expires:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* logoff old sessions */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (SO_TIMEOUT &amp;gt; 0 &amp;&amp; sessionExpiration &amp;lt; (now =
&lt;br&gt;&amp;gt; System.currentTimeMillis())) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sessionExpiration = now + SO_TIMEOUT;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iter = sessions.listIterator();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while( iter.hasNext() ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ssn = (SmbSession)iter.next();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( ssn.expiration &amp;lt; now ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ssn.logoff( false );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; then the session logoff is called...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I then occassionally get a deadlock:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Thread-19&amp;quot;:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTree.treeConnect(SmbTree.java:128)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - waiting to lock &amp;lt;0x1b9129a8&amp;gt; (a java.lang.Object)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTree.send(SmbTree.java:64)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTree.treeDisconnect(SmbTree.java:168)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - locked &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbSession.logoff(SmbSession.java:301)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - locked &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTransport.getSmbSession(SmbTransport.java:138)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - locked &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:167)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:162)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Thread-11&amp;quot;:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbTree.treeConnect(SmbTree.java:130)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - waiting to lock &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - locked &amp;lt;0x1b9129a8&amp;gt; (a java.lang.Object)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:169)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:162)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; due to the dual locks in treeConnect
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; void treeConnect( ServerMessageBlock andx,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerMessageBlock andxResponse ) throws
&lt;br&gt;&amp;gt; SmbException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String unc;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SmbTransport transport = session.transport();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;synchronized(transport.setupDiscoLock) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;synchronized(transport) {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Other than radically changing the locking system I think reversing the order
&lt;br&gt;&amp;gt; of these locks would really help the situation
&lt;br&gt;&amp;gt; as the transport lock is being held routinely by most functions so by
&lt;br&gt;&amp;gt; nesting these in the curent order (setupDiscoLock and transport)
&lt;br&gt;&amp;gt; there is a race condition where any thread calling logoff will potentially
&lt;br&gt;&amp;gt; end up calling treeconnect while already holding the transport lock..
&lt;/div&gt;&lt;br&gt;This issue is well known. Unfortunately the fix is not trivial
&lt;br&gt;(changing the order of locks or adding new ones cannot fix it) and I
&lt;br&gt;don't have any time to work on it.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/deadlock-in-jcifs-jar..-tp19590700p19591332.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19590700</id>
	<title>deadlock in jcifs jar..</title>
	<published>2008-09-20T18:06:37Z</published>
	<updated>2008-09-20T18:06:37Z</updated>
	<author>
		<name>Con O'Donnell</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Hi I think there is a potential deadlock condition in 1.2.23/1.2.24&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
If I call logon from mutliple threads and one of them expires:&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* logoff old sessions */&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (SO_TIMEOUT &amp;gt; 0 &amp;amp;&amp;amp; sessionExpiration &amp;lt; (now = System.currentTimeMillis())) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sessionExpiration = now + SO_TIMEOUT;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iter = sessions.listIterator();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while( iter.hasNext() ) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ssn = (SmbSession)iter.next();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( ssn.expiration &amp;lt; now ) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ssn.logoff( false );&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
then the session logoff is called...&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
I then occassionally get a deadlock:&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&quot;Thread-19&quot;:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTree.treeConnect(SmbTree.java:128)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - waiting to lock &amp;lt;0x1b9129a8&amp;gt; (a java.lang.Object)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTree.send(SmbTree.java:64)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTree.treeDisconnect(SmbTree.java:168)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - locked &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbSession.logoff(SmbSession.java:301)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - locked &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTransport.getSmbSession(SmbTransport.java:138)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - locked &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:167)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:162)&lt;BR&gt;&lt;BR&gt;
&quot;Thread-11&quot;:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTree.treeConnect(SmbTree.java:130)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - waiting to lock &amp;lt;0x1b90f2a0&amp;gt; (a jcifs.smb.SmbTransport)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - locked &amp;lt;0x1b9129a8&amp;gt; (a java.lang.Object)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:169)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbSession.logon(SmbSession.java:162)&lt;BR&gt;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
due to the dual locks in treeConnect&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; void treeConnect( ServerMessageBlock andx,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerMessageBlock andxResponse ) throws SmbException {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String unc;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SmbTransport transport = session.transport();&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; synchronized(transport.setupDiscoLock) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; synchronized(transport) {&lt;BR&gt;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Other than radically changing the locking system I think reversing the order of these locks would really help the situation &lt;BR&gt;
as the transport lock is being held routinely by most functions so by nesting these in the curent order (setupDiscoLock and transport)&lt;BR&gt;
there is a race condition&amp;nbsp;where&amp;nbsp;any thread calling logoff will potentially end up calling treeconnect while already holding the transport lock..&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
All the Best&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;&lt;br /&gt;&lt;hr /&gt;Get more out of the Web. Learn 10 hidden secrets of Windows Live. &lt;a href='http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008' target='_new' rel=&quot;nofollow&quot;&gt;Learn Now&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/deadlock-in-jcifs-jar..-tp19590700p19590700.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19554828</id>
	<title>want to fuck your daughter when no one s around?.. comb</title>
	<published>2008-09-18T07:50:41Z</published>
	<updated>2008-09-18T07:50:41Z</updated>
	<author>
		<name>Gary146973359</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=US-ASCII&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16711&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY id=role_body style=&quot;FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial&quot; bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7&gt;&lt;FONT id=role_document face=Arial color=#000000 size=2&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;DIV&gt;&lt;FONT style=&quot;color: black; font: normal 10pt ARIAL, SAN-SERIF;&quot;&gt;&lt;HR style=&quot;MARGIN-TOP: 10px&quot;&gt;Psssst...Have you heard the news? &lt;A title=&quot;http://www.stylelist.com/trends?ncid=aolsty00050000000014&quot; href=&quot;http://www.stylelist.com/trends?ncid=aolsty00050000000014&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;There's a new fashion blog, plus the latest fall trends and hair styles at StyleList.com&lt;/A&gt;.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/want-to-fuck-your-daughter-when-no-one-s-around-..-comb-tp19554828p19554828.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19550368</id>
	<title>Windows User rights for jcifs smb authentication</title>
	<published>2008-09-18T04:02:48Z</published>
	<updated>2008-09-18T04:02:48Z</updated>
	<author>
		<name>Amol Agare</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;I am not able to authenticate user using jcifs 1.2.1 package . My user is not in &amp;quot;Backup Operator&amp;#39;s Group&amp;quot; on Windows system. &lt;br&gt;&lt;br&gt;jcifs.smb.SmbAuthException: Access is denied.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:515)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTransport.send(SmbTransport.java:629)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbSession.send(SmbSession.java:240)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbTree.treeConnect(SmbTree.java:154)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbFile.doConnect(SmbFile.java:850)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at jcifs.smb.SmbFile.connect(SmbFile.java:893)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at testclient.main(testclient.java:148)&lt;br&gt;&lt;br&gt;When I put this user into the group, authentication is successful. Please guide me any other way as I don&amp;#39;t want to put my user in &amp;quot;Backup Operator&amp;#39;s Group&amp;quot; due to security reasons.&lt;br&gt;
&lt;br&gt;Your response is appreciable.&lt;br&gt;-- &lt;br&gt;Amol M. Agare&lt;br&gt;Mobile-91-9970164819&lt;br&gt;
&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Windows-User-rights-for-jcifs-smb-authentication-tp19550368p19550368.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19549844</id>
	<title>Re: Strange Behavior with Time on Win98</title>
	<published>2008-09-18T03:10:44Z</published>
	<updated>2008-09-18T03:10:44Z</updated>
	<author>
		<name>Weber, Mirko</name>
	</author>
	<content type="html">&amp;gt; The problem is that I don't test Win98 anymore and haven't in a very
&lt;br&gt;&amp;gt; long time. People just don't use it (except for you?!).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I recall Win98 having some exceptional time handling that is almost
&lt;br&gt;&amp;gt; certainly broken after years of changes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately I can't afford to work on JCIFS for &amp;quot;Free&amp;quot; or &amp;quot;free&amp;quot;
&lt;br&gt;&amp;gt; anymore so that's about as much advice as I can give you.
&lt;br&gt;&lt;br&gt;Thanks for anwsering. Is there a easy way to disable
&lt;br&gt;servertimezoneoffset complete without codepatching as a workaround for
&lt;br&gt;this problem?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Mirko
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;This communication and any files or attachments transmitted with it may contain information that is copyrighted or confidential and exempt from
&lt;br&gt;disclosure under applicable law. It is intended solely for the use of the individual or the entity to which it is addressed.
&lt;br&gt;If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited. 
&lt;br&gt;If you have received this communication in error, please notify us at once so that we may take the appropriate action and avoid troubling you further.
&lt;br&gt;Thank you for your cooperation. Please contact your local IT staff or email &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19549844&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt; if you need assistance.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Strange-Behavior-with-Time-on-Win98-tp19534359p19549844.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19548883</id>
	<title>Re: Problem authenticating at our customer's site</title>
	<published>2008-09-18T02:10:24Z</published>
	<updated>2008-09-18T02:10:24Z</updated>
	<author>
		<name>Richard Heath</name>
	</author>
	<content type="html">&lt;br&gt;Michael B Allen wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This looks like a name service issue. You'll need to figure out if
&lt;br&gt;&amp;gt; WINS is used or only DNS and adjust resolveOrder accordingly and make
&lt;br&gt;&amp;gt; sure the servers DNS can resolve the names supplied in the SMB URL.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But I'm not really sure what you're trying to do. Are you using the
&lt;br&gt;&amp;gt; NTLM HTTP Filter or are you just trying to access a file on a server
&lt;br&gt;&amp;gt; from a servlet?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Mike,
&lt;br&gt;&lt;br&gt;Thanks for your help.
&lt;br&gt;&lt;br&gt;I've asked our tech guy at the customer's site to try the WINS settings
&lt;br&gt;and resolveOrder.
&lt;br&gt;&lt;br&gt;We're using the NTLM HTTP Filter for a single sign-on mechanism.
&lt;br&gt;&lt;br&gt;I'll post more results as and when I get them.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Richard
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-authenticating-at-our-customer%27s-site-tp19534964p19548883.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19545187</id>
	<title>Re: Problem authenticating at our customer's site</title>
	<published>2008-09-17T20:12:02Z</published>
	<updated>2008-09-17T20:12:02Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Wed, Sep 17, 2008 at 11:29 AM, Richard Heath &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19545187&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;richard.heath@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We've been having problems getting JCIF to work on our customer's network so
&lt;br&gt;&amp;gt; I created a test application running under tomcat and have tried it on their
&lt;br&gt;&amp;gt; webserver.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The settings are:
&lt;br&gt;&amp;gt; jcifs.smb.client.password=&amp;lt;private&amp;gt;
&lt;br&gt;&amp;gt; jcifs.smb.client.username=&amp;lt;private&amp;gt;
&lt;br&gt;&amp;gt; jcifs.netbios.cachePolicy=1200
&lt;br&gt;&amp;gt; jcifs.smb.client.soTimeout=300000
&lt;br&gt;&amp;gt; jcifs.util.loglevel=4
&lt;br&gt;&amp;gt; jcifs.http.domainController=172.31.101.6
&lt;br&gt;&amp;gt; jcifs.smb.client.domain=BZ
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Unfortunately the process stops before the actual authentication is
&lt;br&gt;&amp;gt; processed:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003
&lt;br&gt;&amp;gt; ,signSeq=0,tid=0,pid=59807,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT
&lt;br&gt;&amp;gt; LM 0.12
&lt;br&gt;&amp;gt; ]
&lt;br&gt;&amp;gt; New data read: Transport1[0.0.0.0&amp;lt;00&amp;gt;/172.31.101.6:0]
&lt;br&gt;&amp;gt; 00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00 | SMBr......└....|
&lt;br&gt;&amp;gt; 00010: 00 00 00 00 00 00 00 00 00 00 9F E9 00 00 01 00 |...........Θ....|
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags
&lt;br&gt;&amp;gt; 2=0xC003,signSeq=0,tid=0,pid=59807,uid=0,mid=1,wordCount=17,byteCount=28,wordCount=17,dialectIn
&lt;br&gt;&amp;gt; dex=0,securityMode=0xF,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxB
&lt;br&gt;&amp;gt; ufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0001F3FD,serverTime=Wed
&lt;br&gt;&amp;gt; S
&lt;br&gt;&amp;gt; ep 17 16:34:59 CEST
&lt;br&gt;&amp;gt; 2008,serverTimeZone=65416,encryptionKeyLength=8,byteCount=28,encryptionKey=
&lt;br&gt;&amp;gt; 0x0517FB14BDB5678D,oemDomainName=BZ]
&lt;br&gt;&amp;gt; NodeStatusRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=fals
&lt;br&gt;&amp;gt; e,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=1,an
&lt;br&gt;&amp;gt; swerCount=0,authorityCount=0,additionalCount=0,questionName=*
&lt;br&gt;&amp;gt; &amp;lt;00&amp;gt;,questionType=0x
&lt;br&gt;&amp;gt; 0021,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 00000: 00 01 00 00 00 01 00 00 00 00 00 00 20 43 4B 41 |............ CKA|
&lt;br&gt;&amp;gt; 00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
&lt;br&gt;&amp;gt; 00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21 |AAAAAAAAAAAAA..!|
&lt;br&gt;&amp;gt; 00030: 00 01 |.. |
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NetBIOS: new data read from socket
&lt;br&gt;&amp;gt; NodeStatusResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false
&lt;br&gt;&amp;gt; ,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=0,ans
&lt;br&gt;&amp;gt; werCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionCla
&lt;br&gt;&amp;gt; ss=IN,recordName=*
&lt;br&gt;&amp;gt; &amp;lt;00&amp;gt;,recordType=0x0021,recordClass=IN,ttl=0,rDataLength=173]
&lt;br&gt;&amp;gt; 00000: 00 01 84 00 00 00 00 01 00 00 00 00 20 43 4B 41 |............ CKA|
&lt;br&gt;&amp;gt; 00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
&lt;br&gt;&amp;gt; 00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21 |AAAAAAAAAAAAA..!|
&lt;br&gt;&amp;gt; 00030: 00 01 00 00 00 00 00 AD 07 42 5A 44 43 30 36 20 |.......¡.BZDC06 |
&lt;br&gt;&amp;gt; 00040: 20 20 20 20 20 20 20 20 00 44 00 42 5A 20 20 20 | .D.BZ |
&lt;br&gt;&amp;gt; 00050: 20 20 20 20 20 20 20 20 20 20 00 C4 00 42 5A 20 | .─.BZ |
&lt;br&gt;&amp;gt; 00060: 20 20 20 20 20 20 20 20 20 20 20 20 1C C4 00 42 | .─.B|
&lt;br&gt;&amp;gt; 00070: 5A 44 43 30 36 20 20 20 20 20 20 20 20 20 20 44 |ZDC06 D|
&lt;br&gt;&amp;gt; 00080: 00 42 5A 20 20 20 20 20 20 20 20 20 20 20 20 20 |.BZ |
&lt;br&gt;&amp;gt; 00090: 1E C4 00 42 5A 20 20 20 20 20 20 20 20 20 20 20 |.─.BZ |
&lt;br&gt;&amp;gt; 000A0: 20 20 1D 44 00 01 02 5F 5F 4D 53 42 52 4F 57 53 | .D...__MSBROWS|
&lt;br&gt;&amp;gt; 000B0: 45 5F 5F 02 01 C4 00 00 50 56 A8 06 49 00 00 00 |E__..─..PV¿.I...|
&lt;br&gt;&amp;gt; 000C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
&lt;br&gt;&amp;gt; 000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
&lt;br&gt;&amp;gt; 000E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
&lt;br&gt;&amp;gt; 000F0: 00 00 00 00 00 00 00 |....... |
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideas? It worked fine on our network and continued well after the stage
&lt;br&gt;&amp;gt; it stopped on our customer's system
&lt;/div&gt;&lt;br&gt;This looks like a name service issue. You'll need to figure out if
&lt;br&gt;WINS is used or only DNS and adjust resolveOrder accordingly and make
&lt;br&gt;sure the servers DNS can resolve the names supplied in the SMB URL.
&lt;br&gt;&lt;br&gt;But I'm not really sure what you're trying to do. Are you using the
&lt;br&gt;NTLM HTTP Filter or are you just trying to access a file on a server
&lt;br&gt;from a servlet?
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-authenticating-at-our-customer%27s-site-tp19534964p19545187.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19544935</id>
	<title>Re: Strange Behavior with Time on Win98</title>
	<published>2008-09-17T19:38:57Z</published>
	<updated>2008-09-17T19:38:57Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Wed, Sep 17, 2008 at 11:03 AM, Weber, Mirko
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19544935&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mirko.Weber@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a problem with the LastModifiedTime of files, when communicate with a
&lt;br&gt;&amp;gt; Win98 share from a linux client (to a linux-share or Win2000-share no
&lt;br&gt;&amp;gt; problem).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With the following code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; src.createNewFile();
&lt;br&gt;&amp;gt; src.copyTo(dest);
&lt;br&gt;&amp;gt; System.out.println(&amp;quot;now:&amp;quot;+new Date().getTime()+&amp;quot;,&amp;quot;+new Date());
&lt;br&gt;&amp;gt; System.out.println(&amp;quot;src:&amp;quot;+new Date(src.getLastModified()));
&lt;br&gt;&amp;gt; System.out.println(&amp;quot;dest:&amp;quot;+new Date(dest.getLastModified()));
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get the output:
&lt;br&gt;&amp;gt; now:Wed Sep 17 14:48:25 GMT 2008
&lt;br&gt;&amp;gt; src:Sun Nov 02 03:06:40 GMT 2008
&lt;br&gt;&amp;gt; dest:Wed Dec 17 15:22:40 GMT 2008
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The strange think is, when I look at the log-Level a read the
&lt;br&gt;&amp;gt; SmbComQueryInformationResponse there is the right Time, only when I access
&lt;br&gt;&amp;gt; the Time over getLastModified or when I copy the file with copyTo the time
&lt;br&gt;&amp;gt; get this strange offset. Here the sample with logging:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; now:Wed Sep 17 14:48:25 GMT 2008
&lt;br&gt;&amp;gt; queryPath: \TMP\src
&lt;br&gt;&amp;gt; SmbComQueryInformation[command=SMB_COM_QUERY_INFORMATION,received=false,errorCode=0,flags=0x0018,flags2=0x4003,signSeq=0,tid=55298,pid=2090,uid=0,mid=13,wordCount=0,byteCount=10,filename=\TMP\src]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; New data read: Transport1[ROEGO01&amp;lt;00&amp;gt;/172.18.84.107:139]
&lt;br&gt;&amp;gt; 00000: FF 53 4D 42 08 00 00 00 00 98 03 40 00 00 00 00 &amp;nbsp;|ÿSMB.......@....|
&lt;br&gt;&amp;gt; 00010: 00 00 00 00 00 00 00 00 02 D8 2A 08 00 00 0D 00 &amp;nbsp;|.........Ø*.....|
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SmbComQueryInformationResponse[command=SMB_COM_QUERY_INFORMATION,received=false,errorCode=0,flags=0x0098,flags2=0x4003,signSeq=0,tid=55298,pid=2090,uid=0,mid=13,wordCount=10,byteCount=0,fileAttributes=0x0020,lastWriteTime=Wed
&lt;br&gt;&amp;gt; Sep 17 16:50:40 GMT 2008,fileSize=0]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; src:Sun Nov 02 03:06:40 GMT 2008
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My hint is, that this has something to do with the serverTimeZone that I get
&lt;br&gt;&amp;gt; from SmbNegotiateResponse:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0x0000,signSeq=0,tid=0,pid=2090,uid=0,mid=1,wordCount=17,byteCount=8,wordCount=17,dialectIndex=0,securityMode=0x2,security=share,encryptedPasswords=true,maxMpxCount=2,maxNumberVcs=1,maxBufferSize=2920,maxRawSize=65536,sessionKey=0x80030080,capabilities=0x00000203,serverTime=Wed
&lt;br&gt;&amp;gt; Sep 17 14:50:38 GMT
&lt;br&gt;&amp;gt; 2008,serverTimeZone=65416,encryptionKeyLength=8,byteCount=8,encryptionKey=0x800003803F19D148,oemDomainName=]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and the line of code in the SmbFile.java of queryPath() where in the
&lt;br&gt;&amp;gt; else-Tree (for old Systems I think) you have the line:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SmbComQueryInformationResponse response =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new SmbComQueryInformationResponse(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tree.session.transport.server.serverTimeZone * 1000 *
&lt;br&gt;&amp;gt; 60L );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With this I can explain the constant offset, but I don't know where is the
&lt;br&gt;&amp;gt; error. So my question is: Is the queryPath for Win98 wrong, is something on
&lt;br&gt;&amp;gt; the server wrong? Also for the linux-share I get the same high
&lt;br&gt;&amp;gt; serverTimezone in SmbComNegotiateResponse but there is no problem in the
&lt;br&gt;&amp;gt; copyTo-Methode with such a timeOffset.
&lt;/div&gt;&lt;br&gt;The problem is that I don't test Win98 anymore and haven't in a very
&lt;br&gt;long time. People just don't use it (except for you?!).
&lt;br&gt;&lt;br&gt;I recall Win98 having some exceptional time handling that is almost
&lt;br&gt;certainly broken after years of changes.
&lt;br&gt;&lt;br&gt;Unfortunately I can't afford to work on JCIFS for &amp;quot;Free&amp;quot; or &amp;quot;free&amp;quot;
&lt;br&gt;anymore so that's about as much advice as I can give you.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Strange-Behavior-with-Time-on-Win98-tp19534359p19544935.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19544825</id>
	<title>Re: Using jCIFS as a smb server rather than a smb client</title>
	<published>2008-09-17T19:24:22Z</published>
	<updated>2008-09-17T19:24:22Z</updated>
	<author>
		<name>Michael B Allen</name>
	</author>
	<content type="html">On Wed, Sep 17, 2008 at 10:30 AM, Ron Cozad &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19544825&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rcozad55@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I desire to have a Tomcat servlet that mimics a smb server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Why? &amp;nbsp;I need to interface an application to a document repository. &amp;nbsp;I can
&lt;br&gt;&amp;gt; not modify either the application nor repository. &amp;nbsp;The application only
&lt;br&gt;&amp;gt; supports smb client, no webdav or url support. &amp;nbsp;The repository does not
&lt;br&gt;&amp;gt; provide smb server services.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My plan is to put a gateway in place that pretends to be an smb server for
&lt;br&gt;&amp;gt; the application but talks native transport with the repository.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It appears that jCIFS provides smb client support only. &amp;nbsp;Could someone
&lt;br&gt;&amp;gt; confirm that?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I am wrong, is there any example code available using jCIFS as an smb
&lt;br&gt;&amp;gt; server?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I am right, please refer me to another toolkit.
&lt;/div&gt;&lt;br&gt;You're right. JCIFS does not implement the server side of CIFS.
&lt;br&gt;&lt;br&gt;Lookup Alfresco JLAN. They use it in their CMS for what sounds like
&lt;br&gt;exactly the same purpose you describe.
&lt;br&gt;&lt;br&gt;Mike
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael B Allen
&lt;br&gt;PHP Active Directory SPNEGO SSO
&lt;br&gt;&lt;a href=&quot;http://www.ioplex.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Using-jCIFS-as-a-smb-server-rather-than-a-smb-client-tp19533551p19544825.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19534964</id>
	<title>Problem authenticating at our customer's site</title>
	<published>2008-09-17T08:29:20Z</published>
	<updated>2008-09-17T08:29:20Z</updated>
	<author>
		<name>Richard Heath</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;We've been having problems getting JCIF to work on our customer's 
&lt;br&gt;network so I created a test application running under tomcat and have 
&lt;br&gt;tried it on their webserver.
&lt;br&gt;&lt;br&gt;The settings are:
&lt;br&gt;jcifs.smb.client.password=&amp;lt;private&amp;gt;
&lt;br&gt;jcifs.smb.client.username=&amp;lt;private&amp;gt;
&lt;br&gt;jcifs.netbios.cachePolicy=1200
&lt;br&gt;jcifs.smb.client.soTimeout=300000
&lt;br&gt;jcifs.util.loglevel=4
&lt;br&gt;jcifs.http.domainController=172.31.101.6
&lt;br&gt;jcifs.smb.client.domain=BZ
&lt;br&gt;&lt;br&gt;Unfortunately the process stops before the actual authentication is 
&lt;br&gt;processed:
&lt;br&gt;&lt;br&gt;SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003
&lt;br&gt;,signSeq=0,tid=0,pid=59807,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT 
&lt;br&gt;LM 0.12
&lt;br&gt;]
&lt;br&gt;New data read: Transport1[0.0.0.0&amp;lt;00&amp;gt;/172.31.101.6:0]
&lt;br&gt;00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00 | SMBr......└....|
&lt;br&gt;00010: 00 00 00 00 00 00 00 00 00 00 9F E9 00 00 01 00 |...........Θ....|
&lt;br&gt;&lt;br&gt;SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags
&lt;br&gt;2=0xC003,signSeq=0,tid=0,pid=59807,uid=0,mid=1,wordCount=17,byteCount=28,wordCount=17,dialectIn
&lt;br&gt;dex=0,securityMode=0xF,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxB
&lt;br&gt;ufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0001F3FD,serverTime=Wed 
&lt;br&gt;S
&lt;br&gt;ep 17 16:34:59 CEST 
&lt;br&gt;2008,serverTimeZone=65416,encryptionKeyLength=8,byteCount=28,encryptionKey=
&lt;br&gt;0x0517FB14BDB5678D,oemDomainName=BZ]
&lt;br&gt;NodeStatusRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=fals
&lt;br&gt;e,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=1,an
&lt;br&gt;swerCount=0,authorityCount=0,additionalCount=0,questionName=* 
&lt;br&gt;&amp;lt;00&amp;gt;,questionType=0x
&lt;br&gt;0021,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
&lt;br&gt;&lt;br&gt;00000: 00 01 00 00 00 01 00 00 00 00 00 00 20 43 4B 41 |............ CKA|
&lt;br&gt;00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
&lt;br&gt;00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21 |AAAAAAAAAAAAA..!|
&lt;br&gt;00030: 00 01 |.. |
&lt;br&gt;&lt;br&gt;NetBIOS: new data read from socket
&lt;br&gt;NodeStatusResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false
&lt;br&gt;,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=0,ans
&lt;br&gt;werCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionCla
&lt;br&gt;ss=IN,recordName=* 
&lt;br&gt;&amp;lt;00&amp;gt;,recordType=0x0021,recordClass=IN,ttl=0,rDataLength=173]
&lt;br&gt;00000: 00 01 84 00 00 00 00 01 00 00 00 00 20 43 4B 41 |............ CKA|
&lt;br&gt;00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
&lt;br&gt;00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21 |AAAAAAAAAAAAA..!|
&lt;br&gt;00030: 00 01 00 00 00 00 00 AD 07 42 5A 44 43 30 36 20 |.......¡.BZDC06 |
&lt;br&gt;00040: 20 20 20 20 20 20 20 20 00 44 00 42 5A 20 20 20 | .D.BZ |
&lt;br&gt;00050: 20 20 20 20 20 20 20 20 20 20 00 C4 00 42 5A 20 | .─.BZ |
&lt;br&gt;00060: 20 20 20 20 20 20 20 20 20 20 20 20 1C C4 00 42 | .─.B|
&lt;br&gt;00070: 5A 44 43 30 36 20 20 20 20 20 20 20 20 20 20 44 |ZDC06 D|
&lt;br&gt;00080: 00 42 5A 20 20 20 20 20 20 20 20 20 20 20 20 20 |.BZ |
&lt;br&gt;00090: 1E C4 00 42 5A 20 20 20 20 20 20 20 20 20 20 20 |.─.BZ |
&lt;br&gt;000A0: 20 20 1D 44 00 01 02 5F 5F 4D 53 42 52 4F 57 53 | .D...__MSBROWS|
&lt;br&gt;000B0: 45 5F 5F 02 01 C4 00 00 50 56 A8 06 49 00 00 00 |E__..─..PV¿.I...|
&lt;br&gt;000C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
&lt;br&gt;000D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
&lt;br&gt;000E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
&lt;br&gt;000F0: 00 00 00 00 00 00 00 |....... |
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Any ideas? It worked fine on our network and continued well after the 
&lt;br&gt;stage it stopped on our customer's system
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Richard
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Problem-authenticating-at-our-customer%27s-site-tp19534964p19534964.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19534359</id>
	<title>Strange Behavior with Time on Win98</title>
	<published>2008-09-17T08:03:16Z</published>
	<updated>2008-09-17T08:03:16Z</updated>
	<author>
		<name>Weber, Mirko</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.5.7653.38&quot;&gt;
&lt;TITLE&gt;Strange Behavior with Time on Win98&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/rtf format --&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Hello,&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;I have a problem with the LastModifiedTime of files, when communicate with a Win98 share from a linux client (to a linux-share or Win2000-share no problem).&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;With the following code:&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;src.createNewFile();&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;src.copyTo(dest);&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;System.out.println(&amp;quot;now:&amp;quot;+new Date().getTime()+&amp;quot;,&amp;quot;+new Date());&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;System.out.println(&amp;quot;src:&amp;quot;+new Date(src.getLastModified()));&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;System.out.println(&amp;quot;dest:&amp;quot;+new Date(dest.getLastModified()));&lt;/FONT&gt;&lt;/I&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;I get the output:&lt;/FONT&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;now:Wed Sep 17 14:48:25 GMT 2008&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;src:Sun Nov 02 03:06:40 GMT 2008&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;dest:Wed Dec 17 15:22:40 GMT 2008&lt;/FONT&gt;&lt;/I&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;The strange think is, when I look at the log-Level a read the SmbComQueryInformationResponse there is the right Time, only when I access the Time over getLastModified or when I copy the file with copyTo the time get this strange offset. Here the sample with logging:&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;now:Wed Sep 17 14:48:25 GMT 2008&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;queryPath: \TMP\src&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;SmbComQueryInformation[command=SMB_COM_QUERY_INFORMATION,received=false,errorCode=0,flags=0x0018,flags2=0x4003,signSeq=0,tid=55298,pid=2090,uid=0,mid=13,wordCount=0,byteCount=10,filename=\TMP\src]&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;New data read: Transport1[ROEGO01&amp;lt;00&amp;gt;/172.18.84.107:139]&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;00000: FF 53 4D 42 08 00 00 00 00 98 03 40 00 00 00 00&amp;nbsp; |ÿSMB.......@....|&lt;/FONT&gt;&lt;/I&gt;

&lt;BR&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;00010: 00 00 00 00 00 00 00 00 02 D8 2A 08 00 00 0D 00&amp;nbsp; |.........Ø*.....|&lt;/FONT&gt;&lt;/I&gt;
&lt;/P&gt;

&lt;P&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;SmbComQueryInformationResponse[command=SMB_COM_QUERY_INFORMATION,received=false,errorCode=0,flags=0x0098,flags2=0x4003,signSeq=0,tid=55298,pid=2090,uid=0,mid=13,wordCount=10,byteCount=0,fileAttributes=0x0020,lastWriteTime=Wed Sep 17 16:50:40 GMT 2008,fileSize=0]&lt;/FONT&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;src:Sun Nov 02 03:06:40 GMT 2008&lt;/FONT&gt;&lt;/I&gt;
&lt;/P&gt;
&lt;BR&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;My hint is, that this has something to do with the serverTimeZone that I get from SmbNegotiateResponse:&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0x0000,signSeq=0,tid=0,pid=2090,uid=0,mid=1,wordCount=17,byteCount=8,wordCount=17,dialectIndex=0,securityMode=0x2,security=share,encryptedPasswords=true,maxMpxCount=2,maxNumberVcs=1,maxBufferSize=2920,maxRawSize=65536,sessionKey=0x80030080,capabilities=0x00000203,serverTime=Wed Sep 17 14:50:38 GMT 2008,serverTimeZone=65416,encryptionKeyLength=8,byteCount=8,encryptionKey=0x800003803F19D148,oemDomainName=]&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;and the line of code in the SmbFile.java of queryPath() where in the else-Tree (for old Systems I think) you have the line:&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SmbComQueryInformationResponse response =&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new SmbComQueryInformationResponse(&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tree.session.transport.server.serverTimeZone * 1000 * 60L );&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;With this I can explain the constant offset, but I don&amp;#8217;t know where is the error. So my question is: Is the queryPath for Win98 wrong, is something on the server wrong? Also for the linux-share I get the same high serverTimezone in SmbComNegotiateResponse but there is no problem in the copyTo-Methode with such a timeOffset.&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Thanks and Kind regards,&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=2 FACE=&quot;Arial&quot;&gt;Mirko&lt;/FONT&gt;
&lt;/P&gt;

&lt;pre&gt;&lt;/PRE&gt;&lt;html&gt;&lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 8pt&quot;&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Arial&gt;
This communication and any files or attachments transmitted with it may contain information that is copyrighted or confidential and exempt from &lt;br&gt;  disclosure under applicable law. It is intended solely for the use of the individual or the entity to which it is addressed. &lt;br&gt;
If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited. &lt;br&gt;
If you have received this communication in error, please notify us at once so that we may take the appropriate action and avoid troubling you further. &lt;br&gt; 
Thank you for your cooperation. Please contact your local IT staff or email &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19534359&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt; if you need assistance.
&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/html&gt;
&lt;/pre&gt;&lt;/BODY&gt;
&lt;/HTML&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Strange-Behavior-with-Time-on-Win98-tp19534359p19534359.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19533551</id>
	<title>Using jCIFS as a smb server rather than a smb client</title>
	<published>2008-09-17T07:30:28Z</published>
	<updated>2008-09-17T07:30:28Z</updated>
	<author>
		<name>Ron Cozad-2</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;&lt;DIV&gt;I desire to have a Tomcat servlet that&amp;nbsp;mimics a smb server.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Why?&amp;nbsp; I need to interface an application to a document repository.&amp;nbsp; I can not modify either the application nor repository.&amp;nbsp; The application only supports smb client, no webdav or url support.&amp;nbsp; The repository does not provide smb server services.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;My plan is to put a gateway in place that pretends to be an smb server for the application but talks native transport with the repository.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;It appears that jCIFS provides smb client support only.&amp;nbsp; Could someone confirm that?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If I am wrong, is there any example code available using jCIFS as an smb server?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If I am right, please refer me to another toolkit.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;

      </content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Using-jCIFS-as-a-smb-server-rather-than-a-smb-client-tp19533551p19533551.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19439180</id>
	<title>high CPU usage on connection failure</title>
	<published>2008-09-11T09:35:15Z</published>
	<updated>2008-09-11T09:35:15Z</updated>
	<author>
		<name>Edwin Portscher</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:D=&quot;DAV:&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XML