
jcifs_1.3.3.examples.Logon Maven / Gradle / Ivy
Go to download
JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java
The newest version!
import jcifs.*;
import jcifs.smb.*;
public class Logon {
/* java Logon 192.168.1.15 "dom;user:pass"
*/
public static void main( String argv[] ) throws Exception {
UniAddress dc = UniAddress.getByName( argv[0] );
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication( argv[1] );
SmbSession.logon( dc, auth );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy