After I got suggestions from the OpenLdap Developers group, I have incorporated changes to set all the options through "ldap_set_options" API. The new tar ball is "prashant-kumar-031016.tgz".