While testing new sdk (SE05x-MW-v04.03.00) pkcs11 plugin fails to retrieve stored objects.
I was met with "More than MAX_ID_LIST_SIZE objects requested". Even when a single key is used and referred via id, it gave this error.

Due to problem being reproducible easily, I will share easiest way.
Simple steps to reproduce,
1. Write engine.conf for openssl
2. Request all objects or specific object - here i will only give all objects command.
pkcs11-tool --module /usr/lib/libsss_pkcs11.so -O
3. You will face similar issue as above.
File:
sss/plugin/pkcs11/sss_pkcs11_pal_object.c @ 770

I think the condition should be
MAX_ID_LIST_SIZE < ulMaxObjectCount