]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/search.c
Extend value_match to extract an asserted value from a full value
[openldap] / servers / slapd / search.c
index d37d31653da3cdabae886a8041233d3df52d214e..63379e60b6a5d1c97ecc97773712fc02c779960f 100644 (file)
@@ -202,6 +202,12 @@ do_search(
                Entry *entry = NULL;
 
                if ( strcasecmp( nbase, LDAP_ROOT_DSE ) == 0 ) {
+#ifdef LDAP_CONNECTIONLESS
+                       /* Ignore LDAPv2 CLDAP DSE queries */
+                       if (op->o_protocol==LDAP_VERSION2 && conn->c_is_udp) {
+                               goto return_results;
+                       }
+#endif
                        /* check restrictions */
                        rc = backend_check_restrictions( NULL, conn, op, NULL, &text ) ;
                        if( rc != LDAP_SUCCESS ) {