[jcifs] DFS and signing
Thomas Bley
thomas.bley at simple-groupware.de
Fri Dec 15 12:33:37 GMT 2006
Hello,
I tried to enable signing on a samba 3.0.12 server (server signing =
mandatory):
samba logfile: (maybe this helps to find the problem)
[2006/12/15 15:20:06, 1] smbd/service.c:make_connection_snum(642)
192.168.0.4 (192.168.0.4) signed connect to service dfs initially as
user administrator (uid=1000, gid=100) (pid 3316)
[2006/12/15 15:20:06, 0]
libsmb/smb_signing.c:srv_check_incoming_message(779)
srv_check_incoming_message: BAD SIG: seq 8 wanted SMB signature of
[2006/12/15 15:20:06, 0]
libsmb/smb_signing.c:srv_check_incoming_message(783)
srv_check_incoming_message: BAD SIG: seq 8 got SMB signature of
[2006/12/15 15:20:06, 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
[2006/12/15 15:20:06, 0] libsmb/smb_signing.c:signing_good(240)
signing_good: BAD SIG: seq 8
[2006/12/15 15:20:06, 0] lib/util_sock.c:receive_smb(619)
receive_smb: SMB Signature verification failed on incoming packet!
[2006/12/15 15:20:06, 1] smbd/service.c:close_cnum(830)
192.168.0.4 (192.168.0.4) closed connection to service dfs
[2006/12/15 15:20:50, 1] smbd/service.c:make_connection_snum(642)
tomxp (192.168.0.4) signed connect to service test1 initially as user
administrator (uid=1000, gid=100) (pid 3329)
code is:
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 );
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.2/dfs/share1/");
queryPath("smb://192.168.0.2/dfs/vdir4/");
}
\\192.168.0.2\share1 points to msdfs:192.168.0.4\temp
\\192.168.0.2\vdir4 points to msdfs:192.168.0.2\dfs
192.168.0.2 is the Samba machine, 192.168.0.4 is WinXP sp2
jcifs output: see attachment
bye
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcifs_output.zip
Type: application/octet-stream
Size: 8214 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20061215/e8135b36/jcifs_output.obj
More information about the jcifs
mailing list