How to get List of LDAP servers given a domain name (using java + acitvedirectory) , and authenticate it based on username and password ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here are the steps to do it
GET Server List
Authentication
And Here is the full fledged working code
If you are using spring use following conf to invoke init method
And Following properties
else call init during startup
LdapUtil.java