1 import jcifs.*;2 import jcifs.smb.*;3 4 public class Logon {5 6 /* java Logon 192.168.1.15 "dom;user:pass"7 */8 9 public static void main( String argv[] ) throws Exception {10 UniAddress dc = UniAddress.getByName( argv[0] );11 NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication( argv[1] );12 SmbSession.logon( dc, auth );13 }14 }15 16