[jcifs] Domain usage
Michael B Allen
ioplex at gmail.com
Fri Sep 9 05:29:03 UTC 2016
Are you using an account that is also on the local machine (like
Administrator)? If yes, and you leave out the domain, the server might
use the local account instead of the domain account of the same name
in which case you might see a difference in bahavior.
This is a wild guess though. You could test this by a) using an
account that is only in the domain or b) use the local machine name as
the domain (look at netbios name in ipconfig /all on server but it's
almost always the first label of the DNS name). If you no longer see a
difference in behavior then that would suggest the server is using
different accounts that happen to have the same name.
This is why you should ALWAYS supply a domain in your credentials.
If tha'ts not the problem, whats is the server? Is it special in any
way (like a NAS appliance or really old)?
Michael B Allen
Java Active Directory Integration
On Tue, Sep 6, 2016 at 11:23 AM, Jeff Schindler <jas001 at gmail.com> wrote:
> We are using JCIFS from a Mac to get certain NTFS attributes from a SMB
> share (via SmbFile::getAttributes). We can log into the SMB share without a
> domain via the Mac OS and all seems to function normally. We can also make
> a connection to the SmbFile via JCIFS without the domain, however, when we
> call getAttributes on that SmbFile, it always returns 0. If we add the
> domain back in, it returns the correct attributes. Does anyone have any
> idea why this might be happening?
More information about the jCIFS