Question: why use ldap instead of database?
Answer: Further, whereas a lot of SQL-based and NoSQL-based applications tend to use a single account for all interaction with the data store, LDAP applications typically perform operations as the end user, which better ensures that their activities are properly restricted, and also provides a better audit trail.