• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Quick Help on LDAP to LDAPS move for MS AD

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi There,

I have an Speing Application which uses LDAP authentication....But now I have to move it  to LDAPS secured Authentication...Could anyone help me how can I do that and what are the best procedures to be followed to achieve it...

Quick replies would be appreciated..


For Reference..This is the URL We are forming during the authentication.Please clarify should I change the port also?


Thanks.
 
Sarah Jay
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sarah Jay wrote:Hi There,

I have an Speing Application which uses LDAP authentication....But now I have to move it  to LDAPS secured Authentication...Could anyone help me how can I do that and what are the best procedures to be followed to achieve it...

Quick replies would be appreciated..


For Reference..This is the URL We are forming during the authentication.Please clarify should I change the port also?


Thanks.




I mean what are the steps involved in mograting to LDAPS....
 
Saloon Keeper
Posts: 26544
187
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Well-Known Port for LDAPS is 636. But I think LDAP is one of those protocols where you can also use the non-secure port and they'll negotiate security.

Although for readability, efficiency and reduced likelihood of coding errors, I would recommend using String.format() to build the ldapUrl string instead of brute concatenation.
 
Sarah Jay
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:The Well-Known Port for LDAPS is 636. But I think LDAP is one of those protocols where you can also use the non-secure port and they'll negotiate security.

Although for readability, efficiency and reduced likelihood of coding errors, I would recommend using String.format() to build the ldapUrl string instead of brute concatenation.


Hi Tim...

Thanks... Am aware of that... But my question is like how can I move from LDAP to Secure LDAps
 
Tim Holloway
Saloon Keeper
Posts: 26544
187
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Upgrade the LDAP server to support LDAPS. Use the "ldaps:" URL. Change port if needed. Should be all it takes.
 
Sarah Jay
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Upgrade the LDAP server to support LDAPS. Use the "ldaps:" URL. Change port if needed. Should be all it takes.



Thanks, Tim... Here  I am not hardcoding the port number either as 389 or 636 instead we are fetching it from AD Domain  Directory itself, Using a bean. So is it needed to add the SSL or any authorized certificate? or will it work without a certificate as well?



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic