В FreeBSD 11:
pkg install openldap-client # for lber.h pkg install cyrus-sasl # if you need sasl.h pip install python-ldap