LDAP can be used to access directory services. The directory / directory can be used as a repository for usernames and passwords, but it can probably be redundant if you just save usernames and passwords, as they are best suited for the enterprise and have many other functions. The most common use case that I know is not authenticated directly with LDAP (although this is completely possible), but uses it for authorization to get roles for the user, for example. Active Directory combined with SSO (e.g. kerberos / ntlm authentication).
To use it, you must check the ldap client library (e.g. http://www.springsource.org/ldap ) in your authentication and / or authorization code.
You mentioned that this is a "small website" and I think that LDAP may be redundant for your business. If this is a small site, you should use a ready-made module, as you mentioned, and save it in a database with hashed and salted passwords. If you want to use LDAP, you should check OpenDJ ( http://forgerock.com/what-we-offer/open-identity-stack/opendj/ ) if you are looking for a clean and simple LDAP directory service.
col
source share