C/C++ LDAP Programming
Complete LDAP functionality
RFC 1823 (and beyond)
Netscape or University of Michigan (many platforms)
Example