ldap: Detecting and handling size limit errors for better understanding