Could anybody help me to know if I am missing anything here (Don't know may be to set some ldap options or missed some compilation flag, not sure).
There are multiple instances in the openldap source code itself that use it. I suggest you examine them.
--Quanah -- Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration