Get all user in ldap by java

Thursday, March 10th, 2016 (0 Comment)

In the previous article we looked at some of the ways to connect to Ldap server. In this article, to serve the purpose of each project or system, we will research further into the structure of the ldap.

Now, we’re going to practice, let’s see some examples to understand more details about the Ldap.

The first is the main function, will authenticate through ldap in java by user domain and password.

1. Main function, it will connect to ldap server

  • Line 20: get all attribute of user domain
  • Line 21: get all users of ldap server

2. Get all attributes function of user ldap

3. Get all users function of ldap server

  • Line 16: add condition if to print out username that you use it to login ldap. If you want to print out information of all user, you can remove this line.

Tags: , , , ,

Related Posts

core java
Export Crystal Report with Subreport in java
core java
Convert xml to object java and vice versa
core java
Java basic tutorial on lvtutorial.com
core java
Java hibernate manytomany to manage user role

Related Posts

core java
Export Crystal Report with Subreport in java
core java
Convert xml to object java and vice versa
core java
Java basic tutorial on lvtutorial.com
core java
Java hibernate manytomany to manage user role

Leave a Reply

Your email address will not be published. Required fields are marked *