• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what are the different LDAP connecting mechanisms ?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,

 
Water proof donuts! Eat them while reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic