Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Quick Help on LDAP to LDAPS move for MS AD

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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: 21458
143
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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: 21458
143
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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?



 
Yes, my master! Here is the tiny ad you asked for:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!