Missing ifdef for building without LDAP