public void connect(
String domainController, String domainControllerName,
NtlmServiceAccount ntlmServiceAccount, SecureRandom secureRandom)
throws IOException, NtlmLogonException, NoSuchAlgorithmException {
NtlmPasswordAuthentication ntlmPasswordAuthentication =
new NtlmPasswordAuthentication(
null, ntlmServiceAccount.getAccount(),
ntlmServiceAccount.getPassword());
String endpoint = "ncacn_np:" + domainController + "[\\PIPE\\NETLOGON]";