// Set up the environment for creating the initial context Hashtable<String, Object> env = new Hashtable<String, Object>(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial"); // Authenticate as S. User and password "mysecret" env.put(Context.SECURITY_AUTHENTICATION, "simple"); env.put(Context.SECURITY_PRINCIPAL, "cn=S. User, ou=NewHires, o=JNDITutorial"); env.put(Context.SECURITY_CREDENTIALS, "mysecret"); // Create the initial context DirContext ctx = new InitialDirContext(env); // ... do something useful with ctx
P. Talukdar, T. Brants, M. Liberman, and F. Pereira. Proceedings of the Tenth Conference on Computational Natural Language Learning (CoNLL-X), page 141--148. New York City, Association for Computational Linguistics, (June 2006)
D. Martinez, and E. Agirre. Proceedings of the 2000 Joint SIGDAT conference on Empirical methods in natural language processing and very large corpora: held in conjunction with the 38th Annual Meeting of the Association for Computational Linguistics - Volume 13, page 207--215. Stroudsburg, PA, USA, Association for Computational Linguistics, (2000)
D. Klein, and C. Manning. Proceedings of the 40th Annual Meeting on Association for Computational Linguistics, page 128--135. Stroudsburg, PA, USA, Association for Computational Linguistics, (2002)