fix ldap build