Results 1 to 5 of 5

Thread: LDAPS and hostname validation

Hybrid View

  1. #1
    Join Date
    May 2005
    Location
    San Jose, CA, US
    Posts
    59

    Question LDAPS and hostname validation

    Does anyone know if JNDI by default is supposed to do hostname validation with LDAPS?

    The SSL certificate is validated, but the hostname is not.

    What is the best way to implement or enable this validation?

  2. #2
    Join Date
    Jul 2005
    Location
    Helsingborg, Sweden
    Posts
    504

    Default

    Check out the javax.net.ssl.HostnameVerifier usage in our AbstractTlsDirContextAuthenticationStrategy. Perhaps it can be helpful.
    Ulrik Sandberg
    Jayway (www.jayway.com)
    Spring LDAP project member

  3. #3
    Join Date
    May 2005
    Location
    San Jose, CA, US
    Posts
    59

    Question

    Thanks for the pointer Ulrik, I was not familiar with the Start TLS extension.

    If an LDAP server supports SSL is it guaranteed to also support Start TLS?

    If not, then hostname verification cannot be done for all LDAPS connections, only if Start TLS is supported?

  4. #4
    Join Date
    Feb 2009
    Posts
    2

    Default true

    i just want to post once so i can create a thread.

  5. #5
    Join Date
    May 2005
    Location
    San Jose, CA, US
    Posts
    59

    Question Hostname verifications with LDAPS?

    Quote Originally Posted by mariuss View Post
    If an LDAP server supports SSL is it guaranteed to also support Start TLS?
    To answer my own question, SSL support does not guarantee Start TLS support. Found at least once instance where LDAPS was supported, but not TLS.

    Quote Originally Posted by mariuss View Post
    If not, then hostname verification cannot be done for all LDAPS connections, only if Start TLS is supported?
    Still not sure about this. Is it possible to do hostname verification with LDAPS only? How?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •