<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi Mike,<br><br>OK thanks for the clarification.<br><br>In that case, what would cause an "Access is denied" error when the listFiles() method is called? I am instantiating the SmbFile object with the constructor that takes in a NtlmPasswordAuthentication object. The version that is giving us issues is 1.3.14. When we revert to an older version (1.1), the error goes away. The issue isn't a bad username/password; the operation works 95% of the time. It's the 30 minute to 1 hour down time where the "Access is denied" error manifests that we have every day that's causing us grief.<br><br>I wish I could send you the stack trace but we have limited access to the deployment environment and we can't replicate the issue in our dev environment. Again, it's only on the one
server that we're using multiple accounts to log in. We don't have this issue in our dev environment where we're doing the same thing.<br><br>Thanks again for your help.<br><br>Brian<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Michael B Allen <ioplex@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Brian Lee <leeb_08@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> jcifs@lists.samba.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, September 2, 2010 2:38:09 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [jcifs] how to use preauthentication to get around "Access is denied" error?<br></font><br>
Hi Brian,<br><br>The "preauthentication" business was from the HTTP filter which is no<br>longer used. If you're trying to do CIFS operations, just create an<br>NtlmPasswordAuthentication object and then use that with various<br>SmbFile* constructors.<br><br>Mike<br><br>On Wed, Sep 1, 2010 at 11:59 AM, Brian Lee <<a ymailto="mailto:leeb_08@yahoo.com" href="mailto:leeb_08@yahoo.com">leeb_08@yahoo.com</a>> wrote:<br>> Hi,<br>><br>> I've got an application that gets file listings on shared Windows folders<br>> using JCIFS. However, there is one particular server that is giving us<br>> grief. It works 95% of the time but every so often, it'll start giving<br>> "Access is denied" messages for long stretches at a time (half hour plus).<br>> But then miraculously, the error will clear and things will be working<br>> smoothly again.<br>><br>> I figured that the issue was due to the Windows Server 2003
domain<br>> controller issue. We're attempting to authenticate several different users<br>> near simultaneously (the jobs are working from a timer); from my online<br>> research it appears that the solution is using preauthentication. However,<br>> when I try to find out HOW to do preauthentication, the docs are pretty<br>> sparse.<br>><br>> What I tried is creating an instance of the NtlmPasswordAuthentication,<br>> passing in the user credentials and using the SmbFile constructor that takes<br>> that in as a parameter. Unfortunately, we're still seeing the same error<br>> message pop up when I make the call to SmbFile.listFiles() so I must be<br>> doing it wrong.<br>><br>> Could somebody either explain to me the proper way of doing<br>> preauthentication or refer me to an example out there? Or is the error<br>> message a symptom of a completely different problem?
Thanks!<br>><br>> Brian<br>><br>><br><br><br><br>-- <br>Michael B Allen<br>Java Active Directory Integration<br><span><a target="_blank" href="http://www.ioplex.com/">http://www.ioplex.com/</a></span><br></div></div>
</div><br>
</body></html>