[jcifs] jCIFS MalformedURLException trying to get shares

Christopher R. Hertel crh at ubiqx.mn.org
Fri Nov 8 15:21:43 EST 2002

If the '@' is part of the username (not a delimiter between the username 
and the domain name) then you need to escape it, as in:


The '@' sign is a delimiter used for parsing the SMB URLs, and should only 
be used to separate the user portion from the host portion.  The full 
syntax is (in simple format):


So that's the base of the problem.

In your message, however, you say "The user name is of the format 
test at test-domain.com".  That doesn't look like a username to me.  That 
looks like a username with a DNS domain name attached.

- If it is a DNS domain name, get rid of it.
- If it is an NT domain name, then it is malformed.  NT Domain names won't 
  have a dot in them.
- If it is a W2K domain name, then you're out of luck.  We don't suppot 
  Kerberos authentication yet.

Chris -)-----

On Thu, Nov 07, 2002 at 10:51:05PM -0800, Sundari Karra wrote:
> Hi,
> I am using jCIFS 0.6.7 to get teh shares on a server.  But it is throwing a
> MalformedURLException with the smb url of this format:
> 	smb://test@test-domain.com:pwd@
> The user name is of the format test at test-domain.com.  I think there seems to
> be parsing error because of the @ in the user name. Does anyone of any
> workaround for this problem?
> Thanks,
> Sundari.

Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org

More information about the jcifs mailing list