File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes what are the different LDAP connecting mechanisms ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "what are the different LDAP connecting mechanisms ?" Watch "what are the different LDAP connecting mechanisms ?" New topic
Author

what are the different LDAP connecting mechanisms ?

shivaraj malannavar
Greenhorn

Joined: Jun 09, 2010
Posts: 1
Hi,
I have a Active Directory for which I can connect using simple JAVA calls. Like setting

env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://"+domain+":389");
env.put(Context.SECURITY_PRINCIPAL, userName);
env.put(Context.SECURITY_CREDENTIALS, password);

this works. But I want to enhance the security here. Should I go for SSL or SASL? (if so how to enable them in my active directory? and what changes I might require in my code?)
And what are "simple", "Digetst-MD5", and "GSSAPI" mechanisms? are they part of different mechanism of SASL authentication?

My queries are:
1. How to enable SSL and SASL ( "simple", "Digetst-MD5", and "GSSAPI" ) in my Active Directory.
2. If my ldap client application wants to connect to different person's active directory, then how should I come to know which sort of authentication that AD supports? ( is it through supportedSASLMechanisms property of active directory? but to fetch these property, we have to connect to this AD first!!! )

I really got confused with SSL/TLS/SASL/simple/Digest-MD5/GSSAPI/Anonymous/External type of authentication... Don't know how to set them in my active directory and also not getting how to check which one is being configured in my setup Any help to clarify my doubts will be helpful.
Regards,


bmshiv
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: what are the different LDAP connecting mechanisms ?
 
Similar Threads
Connecting to LDAP server over SSL without using certificates
JNDI and Active Directory
servlet querying active directory
Connecting to Active Directory using LDAP
ldap hell