[jcifs] Can JCIFS able to access the linux share?

Michael B Allen ioplex at gmail.com
Thu Jan 24 21:41:38 MST 2013


On Dec 27, 2012 10:15 AM, "pravink" <pravinkalbhor at gmail.com> wrote:
>
> I am trying to access the linux share (using samba) using the JCIFS lib
but
> always getting login failure
>
> My smb url = smb://pravink-PC;anil:temp123@pravink-PC/share2
>
> but getting-
> jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad
password.

Hi Pravink,

Is the samba server somewhat old? It could be that it requires NTLMv1 which
jcifs will not do without setting the properties described in the post
cited in the other respose. Or if your samba server is setup to use
plaintext passwords, jcifs no longer supports that at all.

Mike

>         at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:406)
>         at jcifs.smb.SmbSession.send(SmbSession.java:218)
>         at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
>         at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
>         at jcifs.smb.SmbFile.connect(SmbFile.java:954)
>         at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
>         at jcifs.smb.SmbFile.getType(SmbFile.java:1282)
>         at jcifs.smb.SmbFile.doEnum(SmbFile.java:1733)
>         at jcifs.smb.SmbFile.listFiles(SmbFile.java:1715)
>         at jcifs.smb.SmbFile.listFiles(SmbFile.java:1648)
>
>
> share2 folder has access to user anil. and I am passing right credentials.
>
> Note- My Java app is running on same m/c where I have shared the share2
folder.
>
> Same things works for the windows share without any issues..
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20130124/39012c0e/attachment.html>


More information about the jCIFS mailing list