[jcifs] Exception when connecting to DFS share

Eric.Mitchell at wellsfargo.com Eric.Mitchell at wellsfargo.com
Wed Sep 5 13:30:46 GMT 2007

 Hi Michael, 
I should have provided more clarification... Yes I am attempting the
authentication against a domain based dfs root.
In my case the URL appears as //my.fully.qualifieddomain.corp/dfs_root

I am testing between our current version of jcifs (1.2.13) and 1.2.17 with
the hopes of being able to allow our java apps (running on Linux)read/write
files within a dfs (on Windows 2003 Active Directory).

The test is a shell script which simply returns a listing...

Currently working in 1.2.13: "${JAVA_HOME}/bin/java" ListFiles
Results in listing all files.

Testing in 1.2.17: "${JAVA_HOME}/bin/java" ListFiles
smb://some.example.name.corp/dfs_root (happens to be same name as dfsshare)
Results in the logon failure.

Testing 1.2.17 for servername/share: "${JAVA_HOME}/bin/java" ListFiles
Also results in logon failure.

Both the .13 and the .17 testing are using the same userID and encrypted
password called from the same jcifs.properties file. 

-----Original Message-----
From: Michael B Allen [mailto:miallen at ioplex.com] 
Sent: Tuesday, September 04, 2007 3:29 PM
To: Mitchell, Eric (SAS)
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Exception when connecting to DFS share

On Tue, 4 Sep 2007 12:34:31 -0500
<Eric.Mitchell at wellsfargo.com> wrote:

> Receiving an authentication exception "jcifs.smb.SmbAuthException: 
> Logon
> failure: unknown user name or bad password" when attempting a List 
> Files to a DFS share (smb://fqdn//dfs_share/).
> However when connecting directly to one of the shares referenced by 
> the DFS object in active directory -  (smb://servername/dfs_share/) -  
> it is working.
> I am using jcifs-1.2.17 - has anyone else seen this behaviour and know 
> how to correct it?
> Pulling my hair out here!

Hi Eric,

We recently made some very significant changes to the DFS code so I'd really
like to know precisely what you're doing. But in general your descriptions
is filled with ambiguity. Can you be more precise using examples like
server1.example.com server2.example.com. By "dfs_share"
do you mean a DFS root?

For example, the following URLs can provoke greatly different protocol


The above assumes server1.example.com/dfsroot is the DFS root,
server1 and server2 are domain controllers in the example.com domain,
server2.example.com/dfsshare is a link in the DFS topology, etc.

Please be more specific,

Michael B Allen
PHP Active Directory Kerberos SSO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5653 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20070905/698bf1fd/smime.bin

More information about the jcifs mailing list