Network and Storage Protocols

Cannot connect to a CIFS share from jCIFS.

SPERKMANDL

Hi all, I can successfully map a CIFS share from Win7, as described in previous posts.

I used local users and the resulting mapping is:

net use * \\192.168.3.86\HOME password1 /USER:SCNETAPP\renzo

where SCNETAPP is the filer name.

Now I want to do the same from jCIFS, within a Java client, through the equivalent URL:

smb://SCNETAPP;renzo:password1@192.168.3.86/HOME

however it doesn't work (Logon failure: unknown user name or bad password).

Any suggestion is welcome.

Renzo

1 ACCEPTED SOLUTION

SPERKMANDL

Oh well, the problem is located in the jcifs password hash swapping (Ansi/Unicode), while the solution is:

jcifs.Config.setProperty( "jcifs.smb.lmCompatibility", "2");

Default was 3, no good for NetApp cifs.

Thanks packet sniffers, hard to find without them.

-- Renzo

View solution in original post

1 REPLY 1

SPERKMANDL

Oh well, the problem is located in the jcifs password hash swapping (Ansi/Unicode), while the solution is:

jcifs.Config.setProperty( "jcifs.smb.lmCompatibility", "2");

Default was 3, no good for NetApp cifs.

Thanks packet sniffers, hard to find without them.

-- Renzo

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public