/usr/share/doc/libjcifs-java-doc/examples/MultiLogon.java is in libjcifs-java-doc 1.3.16-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import jcifs.smb.*;
public class MultiLogon {
public static void main( String argv[] ) throws Exception {
if (argv.length < 1) {
System.err.println( "usage: Dual <cred1> <cred2> <smburl>\n");
return;
}
NtlmPasswordAuthentication auth1 = new NtlmPasswordAuthentication( argv[0] );
NtlmPasswordAuthentication auth2 = new NtlmPasswordAuthentication( argv[1] );
SmbFile f1 = new SmbFile( argv[2], auth1 );
SmbFile f2 = new SmbFile( argv[2], auth2 );
f1.exists();
f2.exists();
}
}
|