so it needs a self signed certificate. realm=MYREALM. Aug 23, 2011 · Spring Security, is a flexible and powerful authentication and access control framework to secure Spring-based Java web application. 500, is a CCITT standard for directory services that is part of the OSI suite of services. download @indexed spring data mongodb free and unlimited. So we have few user entries in our directory. Aug 16, 2011 · roguelike tutorial 01: Java, Eclipse, AsciiPanel, application, applet This tutorial will be written in Java since I'm familiar with it and it's a decent enough language, has many tools and libraries, a large and helpful community, and runs on Mac, Windows, linux, and web browsers. It worked perfectly. Starting with introduction to LDAP, we will develop a Spring Security application integrated with Active Directory LightWeight DS and Apache DS. how can I do. java examples. Understanding LDAP Design and Implementation Steven Tuttle Ami Ehlenberger Ramakrishna Gorthi Jay Leiserson Richard Macbeth Nathan Owen Sunil Ranahandola Michael Storrs Chunhui Yang LDAP concepts and architecture Designing and maintaining LDAP Step-by-step approach for directory Front cover. For writing Java Applications that need to access schema please refer to the JNDI Tutorial. Tutorials for securing WildFly and Jboss, How to configure SSL/HTTPS on WildFly, Configuring LDAP based authentication with Elytron, Configure an Elytron JDBC Realm on WildFly, Creating an Elytron Security Realm for WildFly, Creating a Custom JBoss L. principal value. Import the files necessary for this tutorial (user and department information as well as grants) via the follwing console command:. Setting LDAP Context. The project started by cloning the LDAP reference source from the University of Michigan where a long-running project had supported development and evolution of the LDAP protocol until that project's final release in 1996. • using TCP/IP protocols. • standard and allowing directories to be managed. Current tutorial will use AD as LDAP server. In this tutorial we are going to use a Database to store the user names and passwords. JNDI supports variety of naming and directory services. On the LDAP server, there will be a directory structure of users, which have an associated username and password, as well as a list of groups that each user belongs to. and on sun tutorial for bind is soemthing like Atributes as next param. JNDI stands for Java Naming and Directory Interface. Mar 16, 2012 · Java 1. • The directory server for the tutorials that is installed with the product. So no need to use any third party API in our application. This is a spring ldap authentication tutorial and step by step guide to implement ldap authentication in Active directory. There are four types of JDBC drivers: JDBC-ODBC Bridge Driver, Native Driver, Network Protocol Driver, and. Its a hierarchical data structure with Entries organized in a tree like structure called Directory Information Tree (DIT). Step by Step tutorial to add LDAP to Tomcat & JBoss server. For LDAP servers to be of any use, there must be clients to interact with them. This 5-minutes tutorial will present the way to use this API when working with a LDAP server. We will be using the excellent Apache Directory Studio IDE. This page provides Java source code for JndiLdapContextFactory. Like other features in the new Security API, these are easily invoked with annotations. The following example shows how to login to LDAP Directory as specified user. (before python-ldap installation i gluu support- how to import ldap library into interseption script. It has been tested on Windows, Solaris, Linux and OSX, packages are available for HPUX, AIX, BSD and it should run on any java supporting operating system. 500 directory server and configure the broker to use LDAP authentication and authorization. This video contains the connection code of ldap with active directory in java. 1 bookservice to return a list of books by author. download rundeck tutorial free and unlimited. View all products; Free trials; Buy online; Product lines. from File System to Database. In this tutorial, we will learn about securing our spring boot application with spring security role-based LDAP authentication. This is the main point : you have to create a connection first. download java jmx server insecure configuration remote code execution vulnerability free and unlimited. In the JNDI, you can also use LDAP URLs to name LDAP entries. Example PHP LDAP login script for integration with Active Directory, authenticate username and password, check for group membership using memberof. Using JNDI to connect to LDAP is in itself an easy process and I am not sure what further tools you are looking for. You need to cover first the below two topic. This simply to tell JAVA that you trust the server, and is not used for authentication. Mozilla LDAP Java SDK. change of database from Oracle to MySQL, change of persistence technology e. xml file of the Application Center Services web application (applicationcenter. The AD Query tool is simple and easy to use. Starting with introduction to LDAP, we will develop a Spring Security application integrated with Active Directory LightWeight DS and Apache DS. Groovy LDAP is written in Java, not Groovy. configuration instructions for java applications—includes generic instructions for java-based applications that offer ldap functionality. It is the perfect companion for build tools such as Maven, Continuum, and ANT. by configuring the connection pool, we’ll make better use of the system resources and improve the client responsiveness. Introduction JLDAP is designed to provide powerful, yet simple, access to LDAP directory services. Developer Guide¶ This guide is intened to be read by those who participate into the development of the LDAP API. Get Groups using Ldap in java. a simple author and book example. Access to persistent storage, such as to a database, varies greatly depending on the type of storage (relational databases, object-oriented databases, flat files, and so forth) and the vendor implementation. Spring Security 3. Even though we're creating a simple app for this tutorial, know that the same usage patterns apply no matter how your application is created or where it is deployed. OpenStack software controls large pools of compute, storage, and networking resources throughout a datacenter, managed through a dashboard or via the OpenStack API. Apache Directory Studio can be installed in eclipse and we will be able to get complete feature. A list of ldap resources is available from the folks at King Mountain software: king mountain ldap links. This video contains the connection code of ldap with active directory in java. There are plenty of both free and commercial resources about Java generics and the best sources I used are: The Java Tutorial. Category - JAVA/Core JAVA. ldap3 includes a fully functional Abstraction Layer that lets you. Groovy LDAP is written in Java, not Groovy. LDAP injection is a type of security exploit that is used to compromise the authentication process used by some websites. The LDAP defines a set of operations or requests (see RFC 2251). Change Component Labels. The line ldap. Latest commit bcc122b Aug 14, 2017. This 5-minutes tutorial will present the way to use this API when working with a LDAP server. synchronization. Websites that construct Lightweight Directory Access Protocol ( LDAP ) statements from data provided by users are vulnerable to this type of attack. Add the following system properties to the JAVA_OPTS variable:-Dcom. JNDI is the acronym o f Java Naming and Directory Interface. Begin by selecting the LDAP Ext Users element. NetBeans module for exploring LDAP services from within NetBeans. Difficult to find your tutorial, try Tree View Tutorials or Search Tutorials. 1BestCsharp blog 7,976,190 views 3:43:32. There is already a wide range of open source and proprietary LDAP-enabled software, but organizations using an LDAP server to store data often want to write their own applications tailored specifically to their use of that data. LDAP is an open standard that uses the Basic Encoding Rules (Basic Encoding Rules) subset of ASN. written by objects \\ tags: authentication, DirContext, ldap, simple Array ( ) 4 Responses to "An example of simple ldap authentication" deepa Says:. Ruby LDAP Distinguished Names. With over 1 million apps deployed per month, Bitnami makes it incredibly easy to deploy apps with native installers, as virtual machines, docker containers or in the cloud. Ruby - LDAP Tutorial - Ruby/LDAP is an extension library for Ruby. About this tutorial: Video duration: 14:26 How to connect LDAP with Java and retrieve all user details. 'Crush' comes from the built-in zip methods in CrushFTP. LDAP has been an elusive tool for many people for a long time. LDAP servers are often used. Submitted on - 2011-11-26 08:08:52. com) Spring LDAP project member #12 Jul 16th. Welcome to the next step in studying for the Linux certification exam 301. LDAP (Lightweight Directory Access Protocol) is an open, vendor-neutral, industry standard application for accesing and maintaining distributed directory information services over an IP network. Most JUGs are geographically bound, such as SouJava (Brazil), LJC (London, UK), PhillyJUG(Philadelphia, USA), MoroccoJUG (Morocco) and JUGChennai (India). DirectorySample. LDAP SDK and RFC's. DelegatingFilterProxy is a Spring Framework class which delegates to a filter implementation which is defined as a Spring bean in your application context. You will load the LDAP server with a data file that contains a set of users. how to get and modify the pixel of mat in java? unresolved inclusion in opencv+android tutorial. openldap: complete guide to install & configure how to configure ldap. It should be a very simple technology to use but isn't because many aspects are not well known. Please share us on social media if you like the tutorial. LDAP Studio is a complete LDAP tooling platform intended to be used with any LDAP server however it is particularly designed for use with the Apache Directory Server. You can contact me at: [email protected] Book Description. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more. The Spring Framework is a Java platform that provides comprehensive infrastructure support for developing Java applications. Groovy-Based Apache Groovy is a language for the Java platform designed to enhance developers' productivity. The Apache Jackrabbit™ content repository is a fully conforming implementation of the Content Repository for Java Technology API (JCR, specified in JSR 170 and JSR 283). java // Warning: This code has been marked up for HTML // Create the fullName using LDAP server and search context String fullName. Setting LDAP Context. Java Secure Socket Extension (JSSE) provides the underlying framework for the SSL/TLS implementation in Fuse MQ Enterprise. xml configuration file with a minimum configuration for the Virtual Directory Server, including the Java classes necessary to access the LDAP directory. 04 and how to setup LDAP client on Ubuntu 18. However, most of our references will use LDAP LDAP or LDAP is a protocol that may be used to communicate with a DSA. A simple example of using Spring LDAP to authenticate a user against Active Directory. Extensions. We can write advanced queries using the LdapQueryBuilder or by using custom filters, either by using clear text or custom logical filters. 500-based directory services. Each Spring project has its own; it explains in great details how you can use project features and what you can achieve with them. I am posting this tutorial to install and run Guacamole 0. the system property com. Understanding LDAP - Design and Implementation ©2004 (Steven Tuttle, et al) JNDI API Tutorial and Reference: Building Directory-Enabled Java Applications ©2000 (Rosanna Lee) LDAP Implementation Cookbook: LDAP Howtos and Whitepapers: LDAP for Rocket Scientists (Ron Aitchison) LDAP Linux HOWTO ©2007 (Luiz Ernesto Pinheiro Malère). 1 Chapter 1. this project also uses jbake. By setting up correct login information, you should be able to browser the ldap directory. In this case, the server does not support the "manage referral" control and is supporting referral updates in some other way. In LDAP servers, an entity is uniquely identified by a globally-unique text string called as Distinguished name. This is a free tutorial for LDAP for beginners and all the basic names. Spring Cloud Coordinate Anything. In the JNDI, these map to operations on the DirContext and LdapContext interfaces (which are sub interfaces of Context). November 29, 2011 at 12:57 AM Val Schuman said. Apr 24, 2018 · The main focus of p8programmer is Enterprise Content Management and related technology domains such as BPM, Case Management. To retrieve user roles, 2. download how to create ldif file in ldap free and unlimited. It's a replacement for outdated Java/LDAP libraries like (jLdap, Mozilla LDAP SDK and JNDI). It should be more specific. LDAP is a global directory service, industry-standard protocol, which is based on client-server model and runs on a layer above the TCP/IP stack. The Apache Jackrabbit™ content repository is a fully conforming implementation of the Content Repository for Java Technology API (JCR, specified in JSR 170 and JSR 283). Today we will look into spring security role based access and authorization example. Since LDAP has a view of the world which is rather different from that of RabbitMQ, we need to be able to configure the LDAP plugin to execute various queries against the LDAP database to determine whether the user is authorised to do various things. Once the LDAP syntax is correct, a successful bind will show you the directory similar to how it appears in Active Directory. Open source LDAP Apps. Is there any way to accessing LDAP user's information such, userId, and pwd. Nov 06, 2018 · In this quick tutorial, we will learn how to set up Spring Security LDAP. Despite being two completely different APIs with different pros and cons, they share a number of less flattering characteristics:. Java LDAP Sample Code. This chapter explains how to set up an X. If you are preparing for LDAP interview then go through Wisdomjobs LDAP interview questions and answers page. imports easymodbus 'import the easymodbus here is the part of the subroutine that will communicate to the plc via the easymodbustcp, you will notice that we have used the ‘try’ command on the modbusclient. LDAP is used for accessing and updating information in a directory. Learn how to use the LDAP API, connect to various LDAP servers, manipulate the data within a directory. * and javax. To remove the php-horde-ldap package and any other dependant package which are no longer needed from Debian Sid. The most secure configuration is to set all zones to the High security level. Tutorial: searching LDAP entries¶ Note A more pythonic LDAP : LDAP operations look clumsy and hard-to-use because they reflect the age-old idea that time-consuming operations should be done on the client in order not to clutter and hog the server with unneeded elaboration. 500 standard. In this tutorial, I show you how to authenticate users. It includes a Java-based management software and a Java-based server component. whenever one or more interpreters could be used to access the. JNDI is the acronym o f Java Naming and Directory Interface. download rundeck tutorial free and unlimited. The project started by cloning the LDAP reference source from the University of Michigan where a long-running project had supported development and evolution of the LDAP protocol until that project's final release in 1996. I've been trubleshooting this problem for 2 days and cannot figure it out for the life of me. apereo/java-cas-client Apereo Java CAS Client Users starred: 615Users forked: 465Users watching: 615Updated at: 2019-11-23 11:28:26 Java Apereo CAS Client Intro This. coding link : second same code : Checkout new Tutorial for Lambda expression in details- Blog : Java Programming Basic to Advance Tutorial : Java […]. Azure Active Directory (Azure AD) is Microsoft's multi-tenant, cloud-based directory, and identity management service that combines core directory services, application access management, and identity protection into a single solution. An LDAP link identifier, returned by ldap_connect(). coding link : htt. Javascript errors on ldap and host control pages. Integrated security information management solution combining Linux (Fedora), 389 Directory Server, MIT Kerberos, NTP, DNS, Dogtag certificate system, SSSD and others. First is a simple java bean,. AirRecorder. 2 environment based upon a request from the forum user Vince Ogne. Active Directory Query Tool. 500 it encompasses most of its primary functions, but lacks the more esoteric functions that X. But before we can do that we will need to setup an LDAP server and client on our machine. Example PHP LDAP login script for integration with Active Directory, authenticate username and password, check for group membership using memberof. Apache Karaf in the Enterprise. Jan 12, 2011 · In this tutorial we will setup a basic LDAP structure containing users and roles. Install the Java Platform Software. For using the examples in this tutorial a special schema needs to be configured on the server. Like SQL Injection, Java SQL injection or. Dcm4che tutorial download dcm4che tutorial free and unlimited. java examples. Install and Configure Open LDAP - LDAP known as Light Weight Directory Access Protocol is a protocol used for accessing X. That option will just give you more headaches later on if you’re not familiar with java packages. The open ldap folks produce a nice extensible stand-alone directory, along with some general ldap information: Open Ldap. MuleSoft LDAP Connector With Example Get the Java 7 location, we will need this location. Aug 23, 2011 · Spring Security, is a flexible and powerful authentication and access control framework to secure Spring-based Java web application. how to create an initial context to an LDAP server using anonymous authentication (i. This simple interceptor is a cache of three attributes, transaction isolation level, auto commit and read only state, in order for the system to avoid not needed roundtrips to the database. License The UnboundID LDAP SDK for Java is available under three licenses: LICENSE-GPLv2. The "extended. ) Obtain an LDAP application ID/password if you don't already have one. About this tutorial: Video duration: 14:26 How to connect LDAP with Java and retrieve all user details. MaxPageSize is one of several values defined in a default LDAP policy, called default query policy, which applies to the forest. LDAP Account Manager (LAM) is a webfrontend for managing entries (e. Enable LDAP. For the purpose of this tutorial, we recommend using the relevant applications from the Apache Directory project. Type Name Latest. in this example you will see how to create a console and file appender and add it to the rootlogger. For this, I used the native LDAP classes in Java and rolled my own "ActiveDirectory" class. OpenLDAP password policy – Managing users accounts « OpenLDAP password policy » is an overlay that allows you to set up an efficient management of the authentication accounts of people referenced in the OpenLDAP directory. LDAP Studio is a complete LDAP tooling platform intended to be used with any LDAP server however it is particularly designed for use with the Apache Directory Server. openldap: complete guide to install & configure how to configure ldap. Apache Struts is a free, open-source, MVC framework for creating elegant, modern Java web applications. Let's define the entity which will be used to map LDAP directories which have already been configured in the Spring LDAP article. LdapCtxFactory for LDAP. This page provides Java code examples for org. (before python-ldap installation i gluu support- how to import ldap library into interseption script. Jul 08, 2003 · These books use programming languages such as C/C++, Perl and Java for their code examples, but they still can be helpful for those who wish to code LDAP applications in Python. Developer Guide¶ This guide is intened to be read by those who participate into the development of the LDAP API. Maven Dependency To include spring security in your maven based project, include below dependency: If you are using additional features like LDAP, OpenID, etc. Thanks in advance. YoLinux LDAP Tutorial: OpenLDAP Directory Objects and Attributes Add new LDAP object and attribute definitions to your OpenLDAP (2. java // Warning: This code has been marked up for HTML // Create the fullName using LDAP server and search context String fullName. Step by Step Tutorial on how to apply Java EE6 security to a sample web application using LDAP server for authentication. Spring Security 3. View all products; Free trials; Buy online; Product lines. Before we start, a note about what LDAP is – it stands for Lightweight Directory Access Protocol and it's an open, vendor-neutral protocol for accessing directory services over a network. In this tutorial we use spring ldap to demonstrate CRUD (Create, Read, Update Delete) operations performed on an LDAP server. 500 directory server and browser client, which you can then use to test the LDAP authentication feature of Fuse MQ Enterprise. LDAP Query Examples for AD # Some examples that are specific or often used with Microsoft's Active Directory. Authenticate a user against a LDAP/AD server from a Powerbuilder client. It supports read-only operations that do not modify LDAP directory data, e. JDBCLoginModule. check over here NamingException 80 Other NamingException « Previous • Trail • Next » Your use of this page and all the material on pages under "The Java Tutorials" banner is subject to these Comment Cancel Post ulsa Senior Member Join Date: Jul 2005 Posts: 503 Ulrik Sandberg Jayway (www. modify,update and delete user details in teh LDAP server using Java. For example, when a caller invokes a DirContext method, the LDAP service provider implements the method by sending LDAP requests to the LDAP server. Other LDAP sub-modules can be enabled if you need them later. authentication The authentication mechanism used to connect to the LDAP server when performing user registry exports. As the name suggests, it is a lightweight client-server protocol for accessing directory services, specifically X. If you don't want users to access the Jenkins server directly but would rather that they access via an Apache web server at port 80 and use Apache authentication (e. 6) Spring 3. Note that if you are using ldaps, then you should install the server certificate into the Java truststore. Every object in LDAP can contain one or more sub-objects. Type Name. try the following: 1. FULL PRODUCT VERSION : java version "1. (before python-ldap installation i gluu support- how to import ldap library into interseption script. hello everyone, Plz can anyone let me know how to access a LDAP address book using a java code. 1BestCsharp blog 7,976,190 views 3:43:32. LdapCtxFactory for LDAP. Step by step tutorial to create a Java LDAP SSL authentication. naming and ldap. timeout=300000 "-Dcom. LDAP (Lightweight Directory Access Protocol) is based on X. The API is OSGI ready and extensible. 500 directory server and browser client, which you can then use to test the LDAP authentication feature of Fuse MQ Enterprise. So, in this tutorial we will create a function button. In addition to the repertoire of predefined operations, such as "search" and "modify," the LDAP v3 defines an "extended" operation. Complete Java Tutorials. While it is great that more services such as Facebook and Google are offering two-factor authentication, there are still plenty of services that do not. I am posting this tutorial to install and run Guacamole 0. Spring LDAP is a library to simplify LDAP programming in Java, built on the same principles as Spring Jdbc. Computer system clients include Linux and MS/Windows. As values passed (Like passwords) over "simple" LDAP Bind Requests or HTTP are in clear text and therefore could expose password values. log4j2 is the updated version of the popular and influential log4j library, used extensively throughout the java ecosystem for. Apache Directory Studio Tutorial for LDAP. CData Software connectivity tools provide access to live LDAP objects from popular BI, analytics, ETL, and custom applications, offering our customers access to their data wherever they want. over fetching: over-fetching is fetching too much data, aka there is data in the response you don't. List All Users from LDAP using JNDI. That is, it must tell the LDAP server who is going to be accessing the data so that the server can decide what the client is allowed to see and do. IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President. Jespa - Java Active Directory Integration Jespa is a Java software library that provides advanced integration between Microsoft Active Directory and Java applications. can anyone help? May 12, 2017 at 2:26 AM. You can find out why they use Cryptosense Analyzer for Java in a case study we’re releasing today. 389 Directory Server is hardened by real-world use, is full-featured, supports multi-master replication, and already handles many of. LDAP Tutorial: An Introduction. Tutorial: searching LDAP entries¶ Note A more pythonic LDAP : LDAP operations look clumsy and hard-to-use because they reflect the age-old idea that time-consuming operations should be done on the client in order not to clutter and hog the server with unneeded elaboration. Customizing Hyrax. jsoup sockettimeoutexception read timed out connect timed. The LDAP servers are generally used to access information about people, but sometimes it is also used for items such as computers, printers and other resources. - SpringAdLdapTest. tutorials / spring-security-mvc-ldap / src / main / java / org / baeldung /. Ask Question 4. simply run 'SampleLDAPApplication. Install the Java Platform Software. One such LDAP server is Active Directory. ldapsearch - ldapsearch is a shell accessible interface to the ldap_search(3) library call. This video will explain how to do LDAP Authentication in java. principal value. JNDI is one of the easiest way to add entries. but I industrial plant life spring-security rattling helpful hence consider using it for your safety requirement. Procedure: 1. See the LDAP URL discussion in the JNDI Tutorial. Groovy LDAP is written in Java, not Groovy. java) and the tryit function in WSO2IS 5. In this first one we will learn how to configure the management console to use LDAP for authentication. LDAP Java API¶ This is the Java implementation of a new LDAP API. JDK 14: The new features in Java 14 Flight recorder event streaming, switch expressions, and NVM file mapping byte buffers are slated for the next version of standard Java due in 2020. Spring LDAP is a Java library for simplifying LDAP operations, based on the pattern of Spring’s JdbcTemplate. can you please provide the suggesions how to implement in java. For using the examples in this tutorial a special schema needs to be configured on the server. Cet article présente de manière simple et abordable pour un dévelopeur Java le moyen d'authentifier des utilisateurs avec un Active Directory via le protocole LDAP dans une application Java. You need local LDAP server and sample schema. 2 days ago · overview in this tutorial, we’re going to investigate how we can configure the connection pooling for apache httpclient 4. active directory and ldap/ldap-s active directory (ad) and ldap are a great authentication option for on-premises configurations to. Nov 22, 2017 · Tobias Schneider discovered that libspring-ldap-java, a Java library for Spring-based applications using the Lightweight Directory Access Protocol, would under some circumstances allow authentication with a correct username but an arbitrary password. On the surface, implementing a custom user registry is simple. In enterprises, LDAP servers are often used to store. In the JNDI, these map to operations on the DirContext and LdapContext interfaces (which are sub interfaces of Context). LDAP Windows service is started). JNDI is a Java API which is using by Java applications to find objects or data with a specific name. Sun Java Documentation Java Interview Questions- Rose India Java Tutorial for Beginers Java Tutorials Point Java/J2EE Tech Interviews Java/J2EE Interview Questions Java/J2EE Interview Questions -AllAppLabs DeveloperBooks Interview Questions Java Jotter Interview Questions Java Coding Conventions Online Java Training Java Papers SQL Introduction. rundeck founder alex honor gives a quick tour of rundeck’s integration with the docker api. Explained with help of code and diagram. Jun 01, 2017 · In this guide, we will discuss how to install and configure the OpenLDAP server on Ubuntu 16. naming and javax. net shares Java tutorials, code examples and sample projects for programmers at all levels. These settings affect how results … - Selection from LDAP Programming with Java™ [Book]. Latest commit bcc122b Aug 15, 2017. The manual. how to make a ldap connection through custom java code. So we have few user entries in our directory. change of database from Oracle to MySQL, change of persistence technology e. I have LDAP installed and has a LDAP based addressed book, I Just want to have the Java Code to access this LDAP based address book programmatically, so that i can add/remove any contact from this LDAP based address book using Java Code. url: URL of the LDAP server. LDAP Installation : LDAP setup has explained in this tutorial with OpenDJ. Get the Directory Server software as discussed earlier. I am trying to connect to an external LDAP server from my home server. LDAP SDK and RFC's. modify,update and delete user details in teh LDAP server using Java. For the dedicated, a read through the base ldap faqs is always rewarding!. active directory and ldap/ldap-s active directory (ad) and ldap are a great authentication option for on-premises configurations to. On the LDAP server, there will be a directory structure of users, which have an associated username and password, as well as a list of groups that each user belongs to. Base principles¶ LDAP is a connected protocol, so you need to create a connection in order to send request and receive response from a Ldap server. I had written a blog post about Querying Active Directory using C# it's simple and easy to understand then I thought to provide similar approach/article Querying Active Directory using Java.