[jcifs] jcifs-1.2.13 released / Share ACLs, DFS Fixes and NoRouteToHostException Fallback / dfs test

Thomas Bley thomas.bley at simple-groupware.de
Mon Jan 29 02:09:00 GMT 2007


just tried the new release, here are my results:
When I try to access a dfs share and a normal share I get an end of
stream error.

here is my code:

    public static NtlmPasswordAuthentication ntlm = new

    public static void queryPath(String path) throws Exception {
        System.out.println("Query url "+path);
        SmbFile file0 = new SmbFile( path, ntlm );
//      System.out.println("resolves to "+file0.getDfsPath());
        SmbFile[] files0 = file0.listFiles();
        for( int i = 0; i < files0.length; i++ ) {
            System.out.print( " " + files0[i].getName()+"#\n" );

    public static void main( String[] argv ) throws Exception {


my setup: is a Samba server with as dfs-root and
share1 pointing to a share on a winxp system (\temp)\test1 is a normal share on the samba server.

the output:
- too long for the mailing list


Michael B Allen wrote:
> A new SmbFile.getShareSecurity() method that uses a new
> MsrpcShareGetInfo/ShareInfo502 RPC has been added. This will return the
> ACL for a share as opposed to the ACL for the directory shared. See the
> API documentation for details. Several DFS issues have been identified
> and fixed. If JCIFS receives a NoRouteToHostException on port 445 it
> will now try to fallback to port 139. This code has been tested fairly
> well already. There have been no changes since b4.
> The JCIFS Team would like to thank MetaCarta, Inc. for supporting this
> work. MetaCarta, Inc., a provider of geographic intelligence solutions,
> offers users map-driven geographic search, geographic referencing,
> and data visualization capabilities.

More information about the jcifs mailing list