[jcifs] Java newbie- trying to access a windows public share
Mike_Smith at RGCResources.com
Tue Mar 27 13:06:34 GMT 2007
I am confused about the credentials piece
This is a public share and I don't use a user profile/pwd to access this
DO I still need to pass credentials. As I understand it, there are
none for this file.
From: Eric Glass [mailto:eric.glass at gmail.com]
Sent: Monday, March 26, 2007 8:16 AM
To: Smith, Mike
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Java newbie- trying to access a windows public
> jcifs.Config.setProperty( "wins", "192.168.0.10" );
Here you probably want to do:
> SmbFileInputStream in = new
This should be "smb://ggc-ad/Public/IS/mike/020707P.txt" (needs a colon
> jcifs.smb.SmbAuthException: Logon failure: account currently disabled.
> The account is not disabled, I can get to this file via windows
> explorer easily.
You will need to specify the credentials used to access the file; you
probably want to add something like:
More information about the jcifs