0

How to fetch users from Active Directory using LDAPS in java. The AD server is with our client. I'm able to fetch using LDAP protocol, but for LDAPS what additional information do I require from client?

user1531038
  • 266
  • 1
  • 6
  • 1
    Possible Duplicate: [Connecting LDAP server from java application](http://stackoverflow.com/questions/2880968/connecting-ldap-server-from-java-application) – Sujay Sep 13 '12 at 08:09

3 Answers3

2

If you have the AD modules, you can use Get-AD user with the -LDAP Filter clause. You don't need the clauses to restrict the query to users. You can fetch it just check in your AD modules.

1

We put up a sample of connecting to LDAPS with JNDI.

We also have some general information on Using LDAP with AD. -jim

Mormegil
  • 7,955
  • 4
  • 42
  • 77
jwilleke
  • 10,467
  • 1
  • 30
  • 51
0

The code is quite similar to retrieval of objects from LDAP.
You need to remember that the port of LDAPS is usually not 389
(but that's the easy part) and handle certificate issues, as explained in the following blog.

Yair Zaslavsky
  • 4,091
  • 4
  • 20
  • 27