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

Michael B Allen mba2000 at ioplex.com
Mon Jan 29 03:37:11 GMT 2007


Well the "end of stream" error is probably because Samba is abruptly
shutting down the pipe due to the SMB signing errors.

Does it work with W2K3 w/ signatures? It would be very strange if it
worked with W2K3 and not with Samba.

I'll update The List but as usual I don't know when I'm going to take
a look at this.

Mike

On Mon, 29 Jan 2007 03:24:12 +0100
Thomas Bley <thomas.bley at simple-groupware.de> wrote:

> Hello,
> 
> 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 are the results from log.smbd (so maybe still the problem with 
> "server signing = mandatory" or the equivalent in w2k3):
> 
> [2007/01/23 17:13:50, 1] smbd/service.c:make_connection_snum(642)
>    192.168.0.2 (192.168.0.2) signed connect to service dfs initially as 
> user administrator (uid=1000, gid=100) (pid 3261)
> [2007/01/23 17:13:50, 0] 
> libsmb/smb_signing.c:srv_check_incoming_message(779)
>    srv_check_incoming_message: BAD SIG: seq 8 wanted SMB signature of
> [2007/01/23 17:13:50, 0] 
> libsmb/smb_signing.c:srv_check_incoming_message(783)
>    srv_check_incoming_message: BAD SIG: seq 8 got SMB signature of
> [2007/01/23 17:13:50, 0] 
> libsmb/smb_signing.c:srv_check_incoming_message(795)
>    srv_check_incoming_message: out of seq. seq num 10 matches. We were 
> expecting seq 8
> [2007/01/23 17:13:50, 0] libsmb/smb_signing.c:signing_good(240)
>    signing_good: BAD SIG: seq 8
> [2007/01/23 17:13:50, 0] lib/util_sock.c:receive_smb(619)
>    receive_smb: SMB Signature verification failed on incoming packet!
> [2007/01/23 17:13:50, 1] smbd/service.c:close_cnum(830)
>    192.168.0.2 (192.168.0.2) closed connection to service dfs
> [2007/01/23 17:14:54, 0] smbd/server.c:main(798)
> 
> 
> however, when I disable server signing, it works without any problems.
> 
> 
> here is my code:
> 
>     public static NtlmPasswordAuthentication ntlm = new
> NtlmPasswordAuthentication("","administrator","admin");
> 
>     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" );
>         }
>         System.out.println("__end__");
>     }
> 
>     public static void main( String[] argv ) throws Exception {
> 
>         queryPath("smb://192.168.0.201/dfs/share1/");
>         queryPath("smb://192.168.0.201/test1/");
>     }
> 
> my setup:
> 
> 192.168.0.201 is a Samba server with 192.168.0.201/dfs as dfs-root and
> share1 pointing to a share on a winxp system (192.168.0.2\temp)
> 192.168.0.201\test1 is a normal share on the samba server.
> 
> the output:
> - too long for the mailing list
> 
> bye
> Thomas
> 
> 
> 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.
> >
> >   
> 
> 
> 


-- 
Michael B Allen
PHP Active Directory SSO
http://www.ioplex.com/


More information about the jcifs mailing list