First lets me try to explain you in brief what is Active directory and LDAP
Active Directory is a database based system that provides authentication, directory, policy, and other services in a Windows environment
LDAP (Lightweight Directory Access Protocol) is an application protocol for querying and modifying items in directory service providers like Active Directory, which supports a form of LDAP.
In short, Active Directory is a directory services database and LDAP is one of the protocols you can use to talk to it.
1. Authenticate users in Active Directory
Directly you can run this code, no need to add any jar file.
Active Directory is a database based system that provides authentication, directory, policy, and other services in a Windows environment
LDAP (Lightweight Directory Access Protocol) is an application protocol for querying and modifying items in directory service providers like Active Directory, which supports a form of LDAP.
In short, Active Directory is a directory services database and LDAP is one of the protocols you can use to talk to it.
1. Authenticate users in Active Directory
Directly you can run this code, no need to add any jar file.