This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |