Skip to content

Instantly share code, notes, and snippets.

@Brimstedt
Brimstedt / gist:32d66c08d3b1e8d2016a60f42d6dcdd5
Created January 26, 2021 10:23
Simple ad connection test for Java
import javax.naming.*;
import javax.naming.directory.*;
import java.util.Hashtable;
/**
* Demonstrates how to create an initial context to an LDAP server
* using simple authentication.
*
* usage: java Simple username password