[jcifs] smbfile : Open stream

Michael B Allen ioplex at gmail.com
Wed Dec 15 12:48:00 MST 2010


Hi Karthick,

What is the stack trace?

What is the code?

It sounds like you need to supply credentials. If you get "account
currently disabled", that sounds like JCIFS is trying to use the
default credentials of "GUEST" which is always disabled on servers
now.

Ideally you should supply credentials using an
NtlmPasswordAuthentication object but if you must supply it in the URL
you can do so as described in the JCIFS API documentation. See the
section about SMB URL formats.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


On Tue, Dec 14, 2010 at 7:53 PM, karthicks <karthicksub at gmail.com> wrote:
>
> Hi,
>
> In my application, i  am using jcifs version 1.3.12. There is one problem i
> am facing when i try to open a stream using the below code.
>
> smbFile.getURL.OpenStream -> This throws a smbexcepion - account currently
> disabled when i stop the server and start it again. First instance of server
> its working fine, but  if i stop the server and start it again mean i am
> facing this problem.
>
> Please guide me in how to open the stream of the smbfile using the the
> getURL since ANT build library is expecting the strem of the smbfile.
>
> Thanks in Advance.
>
> Regards,
> Karthick S
> --
> View this message in context: http://samba.2283325.n4.nabble.com/smbfile-Open-stream-tp3088281p3088281.html
> Sent from the Samba - jcifs mailing list archive at Nabble.com.
>


More information about the jCIFS mailing list