Need openLDAP + Password policy guide

Hi all of you..............

I am using openldap on ubuntu server . i want to apply password policy for user's to set password length , expire date , ......etc.

can anybody guide me to configure this.

Hi guys ...
i have solved this problem using cracklib.

Thank you