The LDAP C-SDK from the Mozilla project. This is a complete LDAP V3 compliant kit.