[jcifs] STATUS_BAD_DEVICE_TYPE why?

Michael B Allen mba2000 at ioplex.com
Thu Jan 5 23:09:56 GMT 2006


On Thu, 05 Jan 2006 23:50:36 +0100
Erdei Bela <ebela at freemail.hu> wrote:

> >>User: WORKGROUP\administrator; Tree Connect AndX, Path: \\IS~SGA
> >>  7.585060 192.168.70.12 -> 192.168.70.9 SMB Session Setup AndX 
> >>Response; Tree Connect AndX, Error: STATUS_BAD_DEVICE_TYPE
> >
> No Unicode characters in the share name, just simple ascii chars. Here 
> is jcifs url:  smb://admin:pass@sga/sga/. It is very simple, i think. I 
> think the problem is in the w2k machine.
> Can i change some property in w2k? Do you know? Because i don't have idea.
> What does it mean: Path: \\IS~SGA. It is good? Why not this: Path: 
> \\sga\sga ?

Yeah, the TreeConnect path is getting messed up for some reason. Are
there any strange characters in the password? If so you will need to
URL escape them. Try separating out the credentials like:

  NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("domain", "username", "password");
  SmbFile f = new SmbFile("smb://sga/sga/", auth);

Mike


More information about the jcifs mailing list