Listing Active Directory users Spring LDAP

Reading Time: 3 minutes Hi in this tutorial I will show you how to connect and retrieve user details on windows active directory server. So previously I have posted how to setup an active directory server on windows server 2008 enterprise edition One by one i will give you the codes and find the full project on github. So let

Oracle JNDI LDAP Connection Test

Reading Time: 1 minute If you want to test your ldap connection you may use this code. Please keep in mind when you create the project add Spring necessary jars as well as spring ldap and sun-jndi-ldapbp.jar package springframeworkldapclient; import java.util.Hashtable; import javax.naming.Context; import javax.naming.NamingException; import javax.naming.ldap.InitialLdapContext; import javax.naming.ldap.LdapContext; public class LdapContextCreation { public static void main(String[] args) { LdapContextCreation

Primitive types and Literals

Reading Time: 1 minute There are 8 primitive types boolean char int long byte short double float Boolean: one bit minimum capacity and has the value of true and false. Char: 16 bit unsigned quantity hold character values. Range of value is 0 to 65,535. Int: 32 bit signed quantity holds numbers. Range of value is -2,147,483,648 to 2,147,483,647.

Maven goals

Reading Time: 1 minute validate – validate the project is correct and all necessary information is available compile – compile the source code of the project test – test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed package – take the compiled code and package it in its distributable format,