Compile Asterisk combine with LDAP

I want setup a PBX with Asterisk and manage user with openLDAP service, but i get trouble in that way, anyone was try this project can you teach me! Thank you very much!