<div dir="ltr">Hi Mike,<div><br></div><div>Thanks for the response.  My responses inline below...</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 9, 2016 at 1:29 AM, Michael B Allen <span dir="ltr"><<a href="mailto:ioplex@gmail.com" target="_blank">ioplex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jeff,<br>
<br>
Are you using an account that is also on the local machine (like<br>
Administrator)? If yes, and you leave out the domain, the server might<br>
use the local account instead of the domain account of the same name<br>
in which case you might see a difference in bahavior.<br></blockquote><div><br></div><div>No - the account I am testing with is unique to the CIFS server.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
This is a wild guess though. You could test this by a) using an<br>
account that is only in the domain or b) use the local machine name as<br>
the domain (look at netbios name in ipconfig /all on server but it's<br>
almost always the first label of the DNS name). If you no longer see a<br>
difference in behavior then that would suggest the server is using<br>
different accounts that happen to have the same name.<br></blockquote><div><br></div><div>The account I am using is only in the "test" domain on the server.  The account was setup specifically for me to test with, so I'm fairly certain its the only account with that name on that server.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
This is why you should ALWAYS supply a domain in your credentials.<br></blockquote><div><br></div><div>The client's concern (I'm developing an FS for the client) is that since the Mac users *can* login without a domain, then they *will* and then run into these issues.  I am not sure why SMB is allowing it.  I've tried passing in various "default" domains to JCIFS (".", "$HOSTNAME", "NONE"), but nothing seems to work but the actual domain name.  I should also note that we are using NTLM authentication, but that doesn't seem to make a difference - specifying the credentials inline with the URL has the same effect sans domain name.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If tha'ts not the problem, whats is the server? Is it special in any<br>
way (like a NAS appliance or really old)?<br></blockquote><div><br></div><div>The client says "Yes, we are using NAS as the source share and it's SMB protocol stack could well be old."</div><div><br></div><div>Thanks for any other insight you can provide.</div><div><br></div><div>Jeff</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Mike<br>
<br>
--<br>
Michael B Allen<br>
Java Active Directory Integration<br>
<a href="http://www.ioplex.com/" rel="noreferrer" target="_blank">http://www.ioplex.com/</a><br>
<br>
On Tue, Sep 6, 2016 at 11:23 AM, Jeff Schindler <<a href="mailto:jas001@gmail.com">jas001@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> We are using JCIFS from a Mac to get certain NTFS attributes from a SMB<br>
> share (via SmbFile::getAttributes).  We can log into the SMB share without a<br>
> domain via the Mac OS and all seems to function normally.  We can also make<br>
> a connection to the SmbFile via JCIFS without the domain, however, when we<br>
> call getAttributes on that SmbFile, it always returns 0.  If we add the<br>
> domain back in, it returns the correct attributes.  Does anyone have any<br>
> idea why this might be happening?<br>
><br>
> Thanks,<br>
> Jeff<br>
</blockquote></div><br></div></div>