setup mail server with openldap backend

I want to setup a mail server with openldap backend. I studidi about openldap. I installed it on my server. I installed iRedmail as mail server. Now I don't know how openldap works and how does it know the users and passwords.

I 'm so confused. i search a lot but all tutorial are very long and I have very short time.
Thanks for your help.