[jcifs] Java newbie- trying to access a windows public share
Eric Glass
eric.glass at gmail.com
Mon Mar 26 12:15:54 GMT 2007
> jcifs.Config.setProperty( "wins", "192.168.0.10" );
Here you probably want to do:
jcifs.Config.setProperty("jcifs.netbios.wins", "192.168.0.10");
> SmbFileInputStream in = new
>
> SmbFileInputStream("smb//ggc-ad/Public/IS/mike/020707P.txt"
> );
>
This should be "smb://ggc-ad/Public/IS/mike/020707P.txt" (needs a
colon in there).
>
> 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:
jcifs.Config.setProperty("jcifs.smb.client.domain", "NTDOMAIN");
jcifs.Config.setProperty("jcifs.smb.client.username", "myusername");
jcifs.Config.setProperty("jcifs.smb.client.password", "mypassword");
More information about the jcifs
mailing list