[Date Prev][Date Next] [Chronological] [Thread] [Top]

Setting illegal LDAP_OPT_PROTOCOL_VERSION



HI!

Some interoperability test cases require to set an illegal value for
LDAP protocol version used. E.g. BLITS 3.0 sets it to 4 to make the
server fail.

Now setting LDAP_OPT_PROTOCOL_VERSION to e.g. 4 is denied in options.c:

if (vers < LDAP_VERSION_MIN || vers > LDAP_VERSION_MAX) {
                                /* not supported */
                                break;
                        }

Ok, I have to admit that this does make sense. ;-)

But how to set an illegal protocol version value with libldap for a test
case like above?

Ciao, Michael.