Don't use LDAP_OPERATIONS_ERROR for internal errors. Use LDAP_OTHER instead. (more changes needed in this area)